Browse Source

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 <james.le-cuirot@yakara.com>
James Le Cuirot 10 years ago
parent
commit
a540959020
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      libs/libxml2/Makefile

+ 1
- 2
libs/libxml2/Makefile View File

42
 endef
42
 endef
43
 
43
 
44
 TARGET_CFLAGS += $(FPIC)
44
 TARGET_CFLAGS += $(FPIC)
45
-TARGET_LDFLAGS += -lz
46
 
45
 
47
 CONFIGURE_ARGS += \
46
 CONFIGURE_ARGS += \
48
 	--enable-shared \
47
 	--enable-shared \
73
 	--with-xinclude \
72
 	--with-xinclude \
74
 	--with-xpath \
73
 	--with-xpath \
75
 	--with-xptr \
74
 	--with-xptr \
76
-	--with-zlib \
75
+	--with-zlib=$(STAGING_DIR)/usr \
77
 	--without-lzma
76
 	--without-lzma
78
 
77
 
79
 HOST_CONFIGURE_ARGS += \
78
 HOST_CONFIGURE_ARGS += \