From a5409590203d66a633005e3e6a53ebe538899a4c Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Tue, 2 Dec 2014 11:10:06 +0000 Subject: [PATCH] libxml2: Fix zlib detection the right way The previous fix (#557) forced -lz into LDFLAGS instead of fixing the real issue where configure was failing to detect zlib in the first place. This was happening because it was looking in /lib, resulting in conflicts with the host libraries. Signed-off-by: James Le Cuirot --- libs/libxml2/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/libxml2/Makefile b/libs/libxml2/Makefile index b22761f7d..05eb83869 100644 --- a/libs/libxml2/Makefile +++ b/libs/libxml2/Makefile @@ -42,7 +42,6 @@ define Package/libxml2/description endef TARGET_CFLAGS += $(FPIC) -TARGET_LDFLAGS += -lz CONFIGURE_ARGS += \ --enable-shared \ @@ -73,7 +72,7 @@ CONFIGURE_ARGS += \ --with-xinclude \ --with-xpath \ --with-xptr \ - --with-zlib \ + --with-zlib=$(STAGING_DIR)/usr \ --without-lzma HOST_CONFIGURE_ARGS += \