From baf6f95e13c969da1f6fe430a95ca9bd40051485 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 20 Jan 2024 16:50:38 +0100 Subject: Explicitly link zlib to keep new macOS environment happy. --- wscript | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'wscript') diff --git a/wscript b/wscript index 8ff3a6217..7395679fb 100644 --- a/wscript +++ b/wscript @@ -278,6 +278,18 @@ def configure(conf): uselib_store="BZ2" ) + # libz; must be explicitly linked on macOS for some reason + conf.check_cxx(fragment=""" + #include + int main() { zlibVersion(); } + """, + mandatory=True, + msg="Checking for libz", + okmsg='yes', + lib='z', + uselib_store="LIBZ" + ) + # fontconfig conf.check_cfg(package='fontconfig', args='--cflags --libs', uselib_store='FONTCONFIG', mandatory=True) -- cgit v1.2.3