GNOME Bugzilla – Bug 749416
libxml2 hardcodes -L/lib in zlib/lzma tests which breaks cross-compiles
Last modified: 2016-05-23 01:26:18 UTC
Created attachment 303406 [details] [review] libxml2-2.9.2-cross-compile.patch the configure.ac's zlib check looks like: https://git.gnome.org/browse/libxml2/tree/configure.ac#n389 AC_CHECK_HEADERS(zlib.h, [SAVE_LDFLAGS="${LDFLAGS}" LDFLAGS="-L${Z_DIR}/lib" AC_CHECK_LIB(z, gzread,[ but if Z_DIR is not set (the default), that means -L/lib is used instead which is bad juju when cross-compiling.
Okay, sounds reasonable, applied : https://git.gnome.org/browse/libxml2/commit/?id=489200559245d8013273a170ff40007252c14ccb thanks ! Daniel