summaryrefslogtreecommitdiff
path: root/app-shells/bash/bash-5.1_p16-r14.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-5.1_p16-r14.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-5.1_p16-r14.ebuild')
-rw-r--r--app-shells/bash/bash-5.1_p16-r14.ebuild4
1 files changed, 4 insertions, 0 deletions
diff --git a/app-shells/bash/bash-5.1_p16-r14.ebuild b/app-shells/bash/bash-5.1_p16-r14.ebuild
index 0a1dbe4b63a9..aeb350668eca 100644
--- a/app-shells/bash/bash-5.1_p16-r14.ebuild
+++ b/app-shells/bash/bash-5.1_p16-r14.ebuild
@@ -177,6 +177,10 @@ src_configure() {
# incompatible with C23.
append-cflags $(test-flags-CC -std=gnu17)
+ if tc-is-cross-compiler; then
+ export CFLAGS_FOR_BUILD="${BUILD_CFLAGS} -std=gnu17"
+ fi
+
myconf=(
--disable-profiling