Pārlūkot izejas kodu

libxml2: fix compilation on archlinux and gentoo

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>
Michael Heimpold 10 gadus atpakaļ
vecāks
revīzija
4281b37484
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1
    0
      libs/libxml2/Makefile

+ 1
- 0
libs/libxml2/Makefile Parādīt failu

@@ -42,6 +42,7 @@ define Package/libxml2/description
42 42
 endef
43 43
 
44 44
 TARGET_CFLAGS += $(FPIC)
45
+TARGET_LDFLAGS += -lz
45 46
 
46 47
 CONFIGURE_ARGS += \
47 48
 	--enable-shared \