mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-10-26 20:25:14 +03:00
libxml2 hardcodes -L/lib in zlib/lzma tests which breaks cross-compiles
For https://bugzilla.gnome.org/show_bug.cgi?id=749416 do not use -L$Z_DIR/lib when Z_DIR isn't actually set
This commit is contained in:
parent
9f2416c617
commit
4892005592
@ -400,7 +400,9 @@ else
|
||||
if test "x$have_libz" = "xno"; then
|
||||
AC_CHECK_HEADERS(zlib.h,
|
||||
[SAVE_LDFLAGS="${LDFLAGS}"
|
||||
LDFLAGS="-L${Z_DIR}/lib"
|
||||
if test "x${Z_DIR}" != "x"; then
|
||||
LDFLAGS="${LDFLAGS} -L${Z_DIR}/lib"
|
||||
fi
|
||||
AC_CHECK_LIB(z, gzread,[
|
||||
have_libz=yes
|
||||
if test "x${Z_DIR}" != "x"; then
|
||||
|
Loading…
Reference in New Issue
Block a user