aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Baruch Siach <baruch@tkos.co.il>2015-08-26 14:35:28 +0300
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-08-26 13:53:09 +0200
commit1a07750cc55b83730fc264dc6c35bb8efebd5bf4 (patch)
treedd916464e76f6020e46bc39dec9a6d0fcb4a6def
parent67fcc2c58007a7c1052fc122da8683f65cbf4d0e (diff)
downloadbuildroot-1a07750cc55b83730fc264dc6c35bb8efebd5bf4.tar.gz
buildroot-1a07750cc55b83730fc264dc6c35bb8efebd5bf4.tar.bz2
tn5250: fix static build with openssl
OpenSSL needs libz. Use pkg-config to find dependencies. Fixes: http://autobuild.buildroot.net/results/95f/95f6df0d01e4944ecd84e830e2bbd8389e1d3e3d/ http://autobuild.buildroot.net/results/432/432b1fdec1e6282d51ba1d859c0f4ab9ed2a5efc/ http://autobuild.buildroot.net/results/d6a/d6a7125c21b4f92b69bb9e30b05c4727eedb63ba/ and more. [Thomas: use += instead of = when assigning <pkg>_CONF_ENV to avoid future mistakes.] Reviewed-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Tested-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/tn5250/tn5250.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/tn5250/tn5250.mk b/package/tn5250/tn5250.mk
index 213f02cb68..bbaa686d86 100644
--- a/package/tn5250/tn5250.mk
+++ b/package/tn5250/tn5250.mk
@@ -13,7 +13,8 @@ TN5250_LICENSE_FILES = COPYING
ifeq ($(BR2_PACKAGE_OPENSSL),y)
TN5250_CONF_OPTS += --with-ssl-dir=$(STAGING_DIR)/usr
-TN5250_DEPENDENCIES += openssl
+TN5250_CONF_ENV += LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs openssl`"
+TN5250_DEPENDENCIES += openssl host-pkgconf
else
TN5250_CONF_OPTS += --without-ssl
endif