libxml2: fix compilation on archlinux and gentoo
authorMichael Heimpold <mhei@heimpold.de>
Tue, 25 Nov 2014 23:01:44 +0000 (00:01 +0100)
committerMichael Heimpold <mhei@heimpold.de>
Tue, 25 Nov 2014 23:01:44 +0000 (00:01 +0100)
Compilation of libxml2 on some distributions is problematic (at least
archlinux) for OpenWrt. This commit fixes the issue. Issue is caused
because configuration for some reason does not find gzopen from zlib.
This patch issues linker to include zlib anyway, if host system doesn't
have this issue, it is not a problem as linker should not link libs
twice anyway.

Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>
[ Slightly modified commit message ]
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
libs/libxml2/Makefile

index d1e914a6cb691bfaa2e366f0b26205702b56c511..b22761f7ddb46408141e0c0e6cdd4b8f496f3b09 100644 (file)
@@ -42,6 +42,7 @@ define Package/libxml2/description
 endef
 
 TARGET_CFLAGS += $(FPIC)
+TARGET_LDFLAGS += -lz
 
 CONFIGURE_ARGS += \
        --enable-shared \