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
pull/11730/head
Alan Coopersmith 2 years ago committed by Xavier Claessens
parent fa7c7d919a
commit ded5bd77ad
  1. 2
      mesonbuild/dependencies/dev.py

@ -536,7 +536,7 @@ class ZlibSystemDependency(SystemDependency):
else:
libs = ['z']
for lib in libs:
l = self.clib_compiler.find_library(lib, environment, [])
l = self.clib_compiler.find_library(lib, environment, [], self.libtype)
h = self.clib_compiler.has_header('zlib.h', '', environment, dependencies=[self])
if l and h[0]:
self.is_found = True

Loading…
Cancel
Save