summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-12-06 12:58:23 +0000
committerSam James <sam@gentoo.org>2024-12-06 13:03:26 +0000
commit885bf9b8448d890b76900ed63fc1401b14d6b1cb (patch)
tree975ede25b20bb5f8934da513748b6c1a2b8a2332 /sys-devel/m4
parentsys-libs/ncurses: pass -std=gnu17 conditionally (diff)
downloadgentoo-885bf9b8448d890b76900ed63fc1401b14d6b1cb.tar.gz
gentoo-885bf9b8448d890b76900ed63fc1401b14d6b1cb.tar.bz2
gentoo-885bf9b8448d890b76900ed63fc1401b14d6b1cb.zip
sys-devel/m4: pass -std=gnu17 conditionally
Old compilers during Prefix bootstrap may not support it but they also won't be defaulting to C23 so that's fine. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-devel/m4')
-rw-r--r--sys-devel/m4/m4-1.4.19-r2.ebuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-devel/m4/m4-1.4.19-r2.ebuild b/sys-devel/m4/m4-1.4.19-r2.ebuild
index 93f8c13a49f8..3e423cc6c33b 100644
--- a/sys-devel/m4/m4-1.4.19-r2.ebuild
+++ b/sys-devel/m4/m4-1.4.19-r2.ebuild
@@ -66,7 +66,7 @@ src_prepare() {
src_configure() {
# https://savannah.gnu.org/support/index.php?111150
- append-cflags -std=gnu17
+ append-cflags $(test-flags-CC -std=gnu17)
local -a myeconfargs=(
--enable-changeword