[libxml2] libxml2 hardcodes -L/lib in zlib/lzma tests which breaks cross-compiles
- From: Daniel Veillard <veillard src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] libxml2 hardcodes -L/lib in zlib/lzma tests which breaks cross-compiles
- Date: Mon, 23 May 2016 01:25:12 +0000 (UTC)
commit 489200559245d8013273a170ff40007252c14ccb
Author: Mike Frysinger <vapier gentoo org>
Date: Mon May 23 08:59:20 2016 +0800
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
configure.ac | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 6f012c9..af8ec25 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]