summaryrefslogtreecommitdiff
path: root/app-shells/bash/bash-5.1_p16-r14.ebuild
diff options
context:
space:
mode:
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