After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 749416 - libxml2 hardcodes -L/lib in zlib/lzma tests which breaks cross-compiles
libxml2 hardcodes -L/lib in zlib/lzma tests which breaks cross-compiles
Status: RESOLVED FIXED
Product: libxml2
Classification: Platform
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2015-05-15 09:55 UTC by Mike Frysinger
Modified: 2016-05-23 01:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
libxml2-2.9.2-cross-compile.patch (436 bytes, patch)
2015-05-15 09:55 UTC, Mike Frysinger
none Details | Review

Description Mike Frysinger 2015-05-15 09:55:23 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.
Comment 1 Daniel Veillard 2016-05-23 01:26:18 UTC
Okay, sounds reasonable, applied :

https://git.gnome.org/browse/libxml2/commit/?id=489200559245d8013273a170ff40007252c14ccb


  thanks !

Daniel