mirror of
https://github.com/php/php-src.git
synced 2024-11-28 12:26:37 +08:00
Don't add -L/usr/lib
This commit is contained in:
parent
e715fb00f8
commit
7c5afebdb8
@ -36,12 +36,17 @@ if test "$PHP_ZLIB" != "no" -o "$PHP_ZLIB_DIR" != "no"; then
|
||||
AC_MSG_ERROR(Cannot find libz)
|
||||
fi
|
||||
|
||||
case $ZLIB_DIR in
|
||||
/usr) ac_extra= ;;
|
||||
*) ac_extra=-L$ZLIB_DIR/lib ;;
|
||||
esac
|
||||
|
||||
PHP_CHECK_LIBRARY(z, gzgets, [
|
||||
AC_DEFINE(HAVE_ZLIB,1,[ ])
|
||||
],[
|
||||
AC_MSG_ERROR(ZLIB extension requires zlib >= 1.0.9)
|
||||
],[
|
||||
-L$ZLIB_DIR/lib
|
||||
$ac_extra
|
||||
])
|
||||
|
||||
PHP_ADD_LIBPATH($ZLIB_DIR/lib, ZLIB_SHARED_LIBADD)
|
||||
|
Loading…
Reference in New Issue
Block a user