mirror of
https://github.com/mpv-player/mpv
synced 2025-03-20 10:17:31 +00:00
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.
This commit is contained in:
parent
7c4465cefb
commit
8e3fb7566b
4
wscript
4
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',
|
||||
|
Loading…
Reference in New Issue
Block a user