From 468bbc1538aaea87beaf455a2ad6ea5a255d5f58 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Sun, 1 Jul 2012 23:59:44 +0200 Subject: msmtp: fix static linking with openssl Openssl depends on zlib, so we need to explicitly link with zlib as well when statically linking. Signed-off-by: Peter Korsgaard --- package/msmtp/msmtp.mk | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'package/msmtp') diff --git a/package/msmtp/msmtp.mk b/package/msmtp/msmtp.mk index 2c712293d..d5e6a3123 100644 --- a/package/msmtp/msmtp.mk +++ b/package/msmtp/msmtp.mk @@ -13,6 +13,10 @@ MSMTP_DEPENDENCIES += host-pkg-config ifeq ($(BR2_PACKAGE_OPENSSL),y) MSMTP_CONF_OPT += --with-ssl=openssl MSMTP_DEPENDENCIES += openssl +ifeq ($(BR2_PREFER_STATIC_LIB),y) +# openssl uses zlib, so we need to explicitly link with it when static +MSMTP_CONF_ENV += LIBS=-lz +endif else ifeq ($(BR2_PACKAGE_GNUTLS),y) MSMTP_CONF_OPT += --with-ssl=gnutls MSMTP_DEPENDENCIES += gnutls -- cgit v1.2.3