From 4307b732994e4e48853d5a51e77cbd3c133808ee Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Wed, 9 Sep 2020 03:11:29 -0500 Subject: [PATCH] pcre2: fix libs property (#18525) --- var/spack/repos/builtin/packages/pcre2/package.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/var/spack/repos/builtin/packages/pcre2/package.py b/var/spack/repos/builtin/packages/pcre2/package.py index c6e4e93ffb..58a4e013f3 100644 --- a/var/spack/repos/builtin/packages/pcre2/package.py +++ b/var/spack/repos/builtin/packages/pcre2/package.py @@ -37,7 +37,9 @@ def configure_args(self): @property def libs(self): - libs = find_libraries('libpcre2*', - root=self.prefix.lib, - recursive=False) - return libs + if '+multibyte' in self.spec: + name = 'libpcre2-32' + else: + name = 'libpcre2-8' + + return find_libraries(name, root=self.prefix, recursive=True)