[Buildroot] [git commit branch/2022.08.x] package/socat: disable openssl for static build

Peter Korsgaard peter at korsgaard.com
Mon Nov 14 19:36:00 UTC 2022


commit: https://git.buildroot.net/buildroot/commit/?id=ee0670afcd6cd43083b2f2e3c838ecf7f486264f
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2022.08.x

socat's configure script does not take the zlib dependency into
account when linking with libssl, and therefore fails at detecting
libssl in BR2_STATIC_LIBS=y configurations.

Since there is no easy way to add the zlib dependency, just disable
openssl support for static builds.

This is not fixing a build failure: libssl was not detected in
BR2_STATIC_LIBS=y configurations, so what this commit does is make it
explicit.

Signed-off-by: Baruch Siach <baruch at tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
(cherry picked from commit 934ec83e9d005fb21e5813f4480ebd624ee28c6c)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 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 c1bf4d260f..bfccd02031 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



More information about the buildroot mailing list