Skip to contentSkip to conversation

tn5250: fix static build with openssl

PATCH Superseded Baruch Siach 2 participants 2 messages Aug 26, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

Cc Vicente Olivert Riera <[email protected]>
---
 package/tn5250/tn5250.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
package/tn5250/tn5250.mk +2 -1
index 213f02cb68e8..180f9225598b 100644
@@ -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 libssl libcrypto`"
+TN5250_DEPENDENCIES += openssl host-pkgconf
 else
 TN5250_CONF_OPTS += --without-ssl
 endif
Signature · 1 line
2.5.0
#1 lore raw

PATCH 1/1 tn5250: fix static build with openssl

Dear Baruch Siach,

Quoted 21 lines · Baruch Siach

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.

Cc Vicente Olivert Riera <[email protected]>
---
 package/tn5250/tn5250.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
package/tn5250/tn5250.mk +0 -0
index 213f02cb68e8..180f9225598b 100644

package/tn5250/tn5250.mk TN5250_LICENSE_FILES = COPYING · line 20

Quoted 9 lines
package/tn5250/tn5250.mk +2 -1
@@ -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 libssl libcrypto`"
+TN5250_DEPENDENCIES += openssl host-pkgconf
 else
 TN5250_CONF_OPTS += --without-ssl
 endif

Build test for MIPS architecture was successful.

Regards,

Vincent.