diff options
author | Mia Herkt <mia@0x0.st> | 2020-12-06 00:05:09 +0100 |
---|---|---|
committer | Mia Herkt <mia@0x0.st> | 2020-12-06 00:05:09 +0100 |
commit | 8e3fb7566bb180ee05dc4f2c5b0361e9165aa3c8 (patch) | |
tree | dd33759f196d7014818e08def540ba9f4afde036 /wscript | |
parent | 7c4465cefb27d4e0d07535d368febdf77b579566 (diff) | |
download | mpv-8e3fb7566bb180ee05dc4f2c5b0361e9165aa3c8.tar.bz2 mpv-8e3fb7566bb180ee05dc4f2c5b0361e9165aa3c8.tar.xz |
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.
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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', |