summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)