From 8e3fb7566bb180ee05dc4f2c5b0361e9165aa3c8 Mon Sep 17 00:00:00 2001 From: Mia Herkt Date: Sun, 6 Dec 2020 00:05:09 +0100 Subject: build: use pkg-config for zlib Zlib has had a .pc file since 2010, and the default search paths we use here can break the build on some distros (notably openSUSE Tumbleweed, which our Travis builds use). Just check pkg-config instead. --- wscript | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index b81f1202ec..b864de558e 100644 --- a/wscript +++ b/wscript @@ -323,10 +323,8 @@ iconv support use --disable-iconv.", }, { 'name': '--zlib', 'desc': 'zlib', - 'func': check_libs(['z'], - check_statement('zlib.h', 'inflate(0, Z_NO_FLUSH)')), + 'func': check_pkg_config('zlib'), 'req': True, - 'fmsg': 'Unable to find development files for zlib.' }, { 'name': '--libbluray', 'desc': 'Bluray support', -- cgit v1.2.3