summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2014-03-10 17:26:25 -0300
committerPeter Korsgaard <peter@korsgaard.com>2014-03-11 23:02:13 +0100
commitcaccb8bf32d2ef9c52712f377fd9c3fcc0a52b94 (patch)
tree6385ee7b22e1105543896c6bc43d00cd5d55ace5
parentbb28d81137e053266ccd8c0db95aef209292adfd (diff)
downloadbuildroot-caccb8bf32d2ef9c52712f377fd9c3fcc0a52b94.tar.gz
buildroot-caccb8bf32d2ef9c52712f377fd9c3fcc0a52b94.zip
ipsec-tools: fix static linking
As with other packages that use openssl and don't use pkg-config to pick up the deps it fails to build for static scenarios. So fix it by adding the zlib link option to LIBS. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/ipsec-tools/ipsec-tools.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/ipsec-tools/ipsec-tools.mk b/package/ipsec-tools/ipsec-tools.mk
index d5521acc1e..44c33808e0 100644
--- a/package/ipsec-tools/ipsec-tools.mk
+++ b/package/ipsec-tools/ipsec-tools.mk
@@ -15,6 +15,11 @@ IPSEC_TOOLS_DEPENDENCIES = openssl flex host-flex
# configure hardcodes -Werror, so override CFLAGS on make invocation
IPSEC_TOOLS_MAKE_OPT = CFLAGS='$(TARGET_CFLAGS)'
+# openssl uses zlib, so we need to explicitly link with it when static
+ifeq ($(BR2_PREFER_STATIC_LIB),y)
+IPSEC_TOOLS_CONF_ENV += LIBS=-lz
+endif
+
IPSEC_TOOLS_CONF_OPT = \
--disable-hybrid \
--without-libpam \
OpenPOWER on IntegriCloud