diff options
| author | Sungjoon Moon <sumoon@seoulsaram.org> | 2025-05-24 09:23:12 +0000 |
|---|---|---|
| committer | James Le Cuirot <chewi@gentoo.org> | 2025-05-27 10:18:05 +0100 |
| commit | b924d8cf6f591487d1a5b1577d73c17971f6aabd (patch) | |
| tree | 1f23d68d5a78253991d6f8cee1c9bf478c084aff /app-shells/bash/bash-3.0_p22.ebuild | |
| parent | 9bde1eeaa3e03433543ff9b9a2f62dd8ff57e804 (diff) | |
| download | gentoo-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-3.0_p22.ebuild')
| -rw-r--r-- | app-shells/bash/bash-3.0_p22.ebuild | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app-shells/bash/bash-3.0_p22.ebuild b/app-shells/bash/bash-3.0_p22.ebuild index 6ea72c071984..7ab38a60533b 100644 --- a/app-shells/bash/bash-3.0_p22.ebuild +++ b/app-shells/bash/bash-3.0_p22.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -110,6 +110,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 + local myconf=( --with-installed-readline=. |
