[Buildroot] [PATCH 2/3] package/socat: disable openssl for static build

Baruch Siach baruch at tkos.co.il
Tue Nov 1 07:41:55 UTC 2022


socal configure script does not take the zlib dependency into account
when linking with libssl. This break static link. There is not easy way
to add zlib dependency, so just disable openssl for static builds.

Signed-off-by: Baruch Siach <baruch at tkos.co.il>
---
 package/socat/socat.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/socat/socat.mk b/package/socat/socat.mk
index c1bf4d260f61..bfccd020312d 100644
--- a/package/socat/socat.mk
+++ b/package/socat/socat.mk
@@ -39,7 +39,7 @@ SOCAT_DEPENDENCIES = host-autoconf
 # incompatibile license (GPL-3.0+)
 SOCAT_CONF_OPTS = --disable-readline
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_OPENSSL):$(BR2_STATIC_LIBS),y:)
 SOCAT_DEPENDENCIES += openssl
 else
 SOCAT_CONF_OPTS += --disable-openssl
-- 
2.35.1




More information about the buildroot mailing list