[Buildroot] [PATCH v2 3/3] package/execline: remove -D_GNU_SOURCE

J. Neuschäfer j.neuschaefer at gmx.net
Mon Apr 14 11:19:34 UTC 2025


execline is written against POSIX C and automatically sets
-D_POSIX_C_SOURCE=200809L and -D_XOPEN_SOURCE=700. uclibc had a bug
consistent with the error reported in the commit that added
-D_GNU_SOURCE[1], but it has since been fixed[2].

[1]: see commit 106e43e303 ("package/execline: fix uclibc build")
[2]: https://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/commit/?id=354129807db12c792696b74d0cd38f2c5d2fd704

Signed-off-by: J. Neuschäfer <j.neuschaefer at gmx.net>
---
 package/execline/execline.mk | 1 -
 1 file changed, 1 deletion(-)

diff --git a/package/execline/execline.mk b/package/execline/execline.mk
index 4d9b668819cc296b0838c09d7091d0f038902c26..9f602cf60af703eb00ec3dff409b3e14acc766ac 100644
--- a/package/execline/execline.mk
+++ b/package/execline/execline.mk
@@ -12,7 +12,6 @@ EXECLINE_INSTALL_STAGING = YES
 EXECLINE_DEPENDENCIES = skalibs

 EXECLINE_CONF_OPTS = \
-	CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE" \
 	--with-sysdeps=$(STAGING_DIR)/usr/lib/skalibs/sysdeps \
 	--with-include=$(STAGING_DIR)/include \
 	--with-dynlib=$(STAGING_DIR)/lib \

--
2.48.0.rc1.219.gb6b6757d772



More information about the buildroot mailing list