Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/3] package/socat: fix printf feature detection
@ 2022-11-01  7:41 Baruch Siach via buildroot
  2022-11-01  7:41 ` [Buildroot] [PATCH 2/3] package/socat: disable openssl for static build Baruch Siach via buildroot
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Baruch Siach via buildroot @ 2022-11-01  7:41 UTC (permalink / raw)
  To: buildroot

socal configure uses AC_TRY_RUN to detect printf features. This does not
work for cross compilation.

All C libraries we use support C99 snprintf. Only glibc and uClibc
support the deprecated Z modifier.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
 package/socat/socat.mk | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/package/socat/socat.mk b/package/socat/socat.mk
index e20577492d86..c1bf4d260f61 100644
--- a/package/socat/socat.mk
+++ b/package/socat/socat.mk
@@ -11,6 +11,14 @@ SOCAT_LICENSE = GPL-2.0 with OpenSSL exception
 SOCAT_LICENSE_FILES = README COPYING COPYING.OpenSSL
 SOCAT_CPE_ID_VENDOR = dest-unreach
 
+SOCAT_CONF_ENV = ac_cv_have_c99_snprintf=yes
+
+ifeq ($(BR2_TOOLCHAIN_USES_GLIBC)$(BR2_TOOLCHAIN_USES_UCLIBC),y)
+SOCAT_CONF_ENV += ac_cv_have_z_modifier=yes
+else
+SOCAT_CONF_ENV += ac_cv_have_z_modifier=no
+endif
+
 ifeq ($(BR2_powerpc)$(BR2_powerpc64)$(BR2_powerpc64le),y)
 SOCAT_CONF_ENV += \
 	sc_cv_sys_crdly_shift=12 \
-- 
2.35.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-11-14 19:38 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-01  7:41 [Buildroot] [PATCH 1/3] package/socat: fix printf feature detection Baruch Siach via buildroot
2022-11-01  7:41 ` [Buildroot] [PATCH 2/3] package/socat: disable openssl for static build Baruch Siach via buildroot
2022-11-01 20:32   ` Thomas Petazzoni via buildroot
2022-11-01 20:47     ` Baruch Siach via buildroot
2022-11-01 20:58       ` Thomas Petazzoni via buildroot
2022-11-02  4:43         ` Baruch Siach via buildroot
2022-11-05 22:49   ` Thomas Petazzoni via buildroot
2022-11-14 19:38   ` Peter Korsgaard
2022-11-01  7:41 ` [Buildroot] [PATCH 3/3] package/socat: bump to version 1.7.4.4 Baruch Siach via buildroot
2022-11-05 22:50   ` Thomas Petazzoni via buildroot
2022-11-01 20:29 ` [Buildroot] [PATCH 1/3] package/socat: fix printf feature detection Thomas Petazzoni via buildroot
2022-11-01 20:43   ` Baruch Siach via buildroot
2022-11-05 22:49 ` Thomas Petazzoni via buildroot
2022-11-14 19:37 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox