diff --git a/qb/config.libs.sh b/qb/config.libs.sh index 6a1bac9eb7..3273c0d730 100644 --- a/qb/config.libs.sh +++ b/qb/config.libs.sh @@ -253,7 +253,11 @@ else HAVE_CG='no' fi -check_pkgconf ZLIB zlib +if [ "$OS" = 'Darwin' ]; then + check_lib ZLIB "-libz" +else + check_pkgconf ZLIB zlib +fi if [ "$HAVE_THREADS" != 'no' ]; then if [ "$HAVE_FFMPEG" != 'no' ]; then