[OE-core] [PATCH] libxml2: explicitly disable zlib for native builds

Mario Domenech Goulart mario at ossystems.com.br
Thu Aug 14 20:20:39 UTC 2014


Without this change, meta-openembedded's php recipe (as of 45e62fb8 --
"php 5.4.14: use pkg-config for libxml2 detection") breaks with this
error on my system:

   tmp/sysroots/x86_64-linux/usr/lib/libxml2.so: undefined reference
   to `gzopen64 at ZLIB_1.2.3.3'

It seems that the host's zlib is leaking into libxml2's build.

Signed-off-by: Mario Domenech Goulart <mario at ossystems.com.br>
---
 meta/recipes-core/libxml/libxml2.inc |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-core/libxml/libxml2.inc b/meta/recipes-core/libxml/libxml2.inc
index 9aa640b..2992a76 100644
--- a/meta/recipes-core/libxml/libxml2.inc
+++ b/meta/recipes-core/libxml/libxml2.inc
@@ -39,8 +39,8 @@ do_configure_prepend_class-nativesdk () {
 }
 
 EXTRA_OECONF = "--without-python --without-debug --without-legacy --with-catalog --without-docbook --with-c14n --without-lzma --with-fexceptions"
-EXTRA_OECONF_class-native = "--with-python=${STAGING_BINDIR}/python --without-legacy --without-docbook --with-c14n --without-lzma"
-EXTRA_OECONF_class-nativesdk = "--with-python=${STAGING_BINDIR}/python --without-legacy --without-docbook --with-c14n --without-lzma"
+EXTRA_OECONF_class-native = "--with-python=${STAGING_BINDIR}/python --without-legacy --without-docbook --with-c14n --without-lzma --without-zlib"
+EXTRA_OECONF_class-nativesdk = "--with-python=${STAGING_BINDIR}/python --without-legacy --without-docbook --with-c14n --without-lzma --without-zlib"
 EXTRA_OECONF_linuxstdbase = "--without-python --with-debug --with-legacy --with-docbook --with-c14n --without-lzma"
 
 # required for pythong binding
-- 
1.7.10.4




More information about the Openembedded-core mailing list