Skip to content

Commit ded5bd7

Browse files
alancxclaesse
authored andcommitted
ZlibSystemDependency: pass libtype to clib_compiler.find_library
Makes it stop reporting that it found a static zlib on Solaris which does not ship a static library file for libz, and thus allows "test cases/rust/13 external c dependencies" to pass. Fixes #10906
1 parent fa7c7d9 commit ded5bd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mesonbuild/dependencies/dev.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ def __init__(self, name: str, environment: 'Environment', kwargs: T.Dict[str, T.
536536
else:
537537
libs = ['z']
538538
for lib in libs:
539-
l = self.clib_compiler.find_library(lib, environment, [])
539+
l = self.clib_compiler.find_library(lib, environment, [], self.libtype)
540540
h = self.clib_compiler.has_header('zlib.h', '', environment, dependencies=[self])
541541
if l and h[0]:
542542
self.is_found = True

0 commit comments

Comments
 (0)