pcre2: fix libs property (#18525)

This commit is contained in:
Adam J. Stewart 2020-09-09 03:11:29 -05:00 committed by GitHub
parent d24532f574
commit 4307b73299
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)