From 319c3dc5ad6f5db165beca0a7a1ec355c9ddf864 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Fri, 16 Jun 2017 19:36:32 -0700 Subject: [PATCH] stoken: Explicitly link with zlib Fixes build issues with external toolchains: /home/florian/dev/toolchains/stbgcc-4.8-1.5/bin/../lib/gcc/mipsel-linux-gnu/4.8.5/../../../../mipsel-linux-gnu/bin/ld: warning: libz.so.1, needed by /home/florian/dev/openwrt/trunk/staging_dir/target-mipsel-unknown-linux-gnu_glibc/usr/lib/libxml2.so, not found (try using -rpath or -rpath-link) /home/florian/dev/openwrt/trunk/staging_dir/target-mipsel-unknown-linux-gnu_glibc/usr/lib/libxml2.so: undefined reference to `gzopen64' /home/florian/dev/openwrt/trunk/staging_dir/target-mipsel-unknown-linux-gnu_glibc/usr/lib/libxml2.so: undefined reference to `gzdirect' /home/florian/dev/openwrt/trunk/staging_dir/target-mipsel-unknown-linux-gnu_glibc/usr/lib/libxml2.so: undefined reference to `gzclose' /home/florian/dev/openwrt/trunk/staging_dir/target-mipsel-unknown-linux-gnu_glibc/usr/lib/libxml2.so: undefined reference to `gzwrite' /home/florian/dev/openwrt/trunk/staging_dir/target-mipsel-unknown-linux-gnu_glibc/usr/lib/libxml2.so: undefined reference to `gzdopen' /home/florian/dev/openwrt/trunk/staging_dir/target-mipsel-unknown-linux-gnu_glibc/usr/lib/libxml2.so: undefined reference to `gzread' collect2: error: ld returned 1 exit status Signed-off-by: Florian Fainelli --- utils/stoken/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/stoken/Makefile b/utils/stoken/Makefile index 3759434f4..182a47230 100644 --- a/utils/stoken/Makefile +++ b/utils/stoken/Makefile @@ -53,6 +53,8 @@ define Package/libstoken CATEGORY:=Libraries endef +TARGET_LDFLAGS += -lz + CONFIGURE_ARGS += \ --with-nettle