summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2020-09-09 03:11:29 -0500
committerGitHub <noreply@github.com>2020-09-09 10:11:29 +0200
commit4307b732994e4e48853d5a51e77cbd3c133808ee (patch)
tree0d933c22c3eaf2957712d98f634c95f47c2491fb
parentd24532f574f27d62d4e5c2d6961ed1aec6529c50 (diff)
downloadspack-4307b732994e4e48853d5a51e77cbd3c133808ee.tar.gz
spack-4307b732994e4e48853d5a51e77cbd3c133808ee.tar.bz2
spack-4307b732994e4e48853d5a51e77cbd3c133808ee.tar.xz
spack-4307b732994e4e48853d5a51e77cbd3c133808ee.zip
pcre2: fix libs property (#18525)
-rw-r--r--var/spack/repos/builtin/packages/pcre2/package.py10
1 files 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 @@ class Pcre2(AutotoolsPackage):
@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)