From f20925a329673ad30c9e4d50845b063188a9a82c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Higor=20Eur=C3=ADpedes?= Date: Fri, 14 Oct 2016 19:42:10 -0300 Subject: [PATCH] (qb) Try to find -lz if the zlib package doesnt exist --- qb/config.libs.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/qb/config.libs.sh b/qb/config.libs.sh index 0bcd8dbf0e..3cf24ece08 100644 --- a/qb/config.libs.sh +++ b/qb/config.libs.sh @@ -288,10 +288,13 @@ if [ "$HAVE_OPENGL" != 'no' ] && [ "$HAVE_OPENGLES" != 'yes' ]; then fi fi -if [ "$OS" = 'Darwin' ]; then - check_lib ZLIB "-lz" -else +if [ "$HAVE_ZLIB" != 'no' ]; then check_pkgconf ZLIB zlib + + if [ "$HAVE_ZLIB" = 'no' ]; then + HAVE_ZLIB='auto' + check_lib ZLIB '-lz' + fi fi if [ "$HAVE_THREADS" != 'no' ]; then