summaryrefslogtreecommitdiff
path: root/app-shells/bash/bash-9999.ebuild
diff options
context:
space:
mode:
authorSungjoon Moon <sumoon@seoulsaram.org>2025-05-24 09:23:12 +0000
committerJames Le Cuirot <chewi@gentoo.org>2025-05-27 10:18:05 +0100
commitb924d8cf6f591487d1a5b1577d73c17971f6aabd (patch)
tree1f23d68d5a78253991d6f8cee1c9bf478c084aff /app-shells/bash/bash-9999.ebuild
parent9bde1eeaa3e03433543ff9b9a2f62dd8ff57e804 (diff)
downloadgentoo-b924d8cf6f591487d1a5b1577d73c17971f6aabd.tar.gz
gentoo-b924d8cf6f591487d1a5b1577d73c17971f6aabd.tar.bz2
gentoo-b924d8cf6f591487d1a5b1577d73c17971f6aabd.zip
app-shells/bash: pass -std=gnu17 to CFLAGS_FOR_BUILD
Essential for cross compile even for >=bash-5.3 Closes: https://bugs.gentoo.org/956318 Signed-off-by: Sungjoon Moon <sumoon@seoulsaram.org> Part-of: https://github.com/gentoo/gentoo/pull/42240 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'app-shells/bash/bash-9999.ebuild')
-rw-r--r--app-shells/bash/bash-9999.ebuild4
1 files changed, 4 insertions, 0 deletions
diff --git a/app-shells/bash/bash-9999.ebuild b/app-shells/bash/bash-9999.ebuild
index 04dd9c2d72ba..de539bc422a0 100644
--- a/app-shells/bash/bash-9999.ebuild
+++ b/app-shells/bash/bash-9999.ebuild
@@ -180,6 +180,10 @@ src_configure() {
# may misbehave at runtime.
unset -v YACC
+ if tc-is-cross-compiler; then
+ export CFLAGS_FOR_BUILD="${BUILD_CFLAGS} -std=gnu17"
+ fi
+
myconf=(
--disable-profiling