diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2012-07-01 23:59:44 +0200 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2012-07-01 23:59:44 +0200 |
commit | 468bbc1538aaea87beaf455a2ad6ea5a255d5f58 (patch) | |
tree | b9dc108650fe10ce0cf1241b3f14d2861910913e | |
parent | d8c630d5390226bf4d46c1af43448630a7cd1a0c (diff) | |
download | buildroot-novena-468bbc1538aaea87beaf455a2ad6ea5a255d5f58.tar.gz buildroot-novena-468bbc1538aaea87beaf455a2ad6ea5a255d5f58.zip |
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 <jacmet@sunsite.dk>
-rw-r--r-- | package/msmtp/msmtp.mk | 4 |
1 files changed, 4 insertions, 0 deletions
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 |