commit: 6670383db1351adec3104a159747a54a9943d0d8
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 6 16:07:05 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Dec 6 16:07:05 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6670383d
dev-vcs/git: 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 <AT> gentoo.org>
dev-vcs/git/git-2.47.0-r1.ebuild | 2 +-
dev-vcs/git/git-2.47.1.ebuild | 2 +-
dev-vcs/git/git-9999-r1.ebuild | 2 +-
dev-vcs/git/git-9999-r2.ebuild | 2 +-
dev-vcs/git/git-9999-r3.ebuild | 2 +-
dev-vcs/git/git-9999.ebuild | 2 +-
6 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/dev-vcs/git/git-2.47.0-r1.ebuild b/dev-vcs/git/git-2.47.0-r1.ebuild
index 02512210c101..6ffa3da84ef2 100644
--- a/dev-vcs/git/git-2.47.0-r1.ebuild
+++ b/dev-vcs/git/git-2.47.0-r1.ebuild
@@ -327,7 +327,7 @@ git_emake() {
src_configure() {
# https://lore.kernel.org/git/[email protected]/
- append-cflags -std=gnu17
+ append-cflags $(test-flags-CC -std=gnu17)
exportmakeopts
}
diff --git a/dev-vcs/git/git-2.47.1.ebuild b/dev-vcs/git/git-2.47.1.ebuild
index 39ba0bb5efe7..9701a056aae7 100644
--- a/dev-vcs/git/git-2.47.1.ebuild
+++ b/dev-vcs/git/git-2.47.1.ebuild
@@ -324,7 +324,7 @@ git_emake() {
src_configure() {
# https://lore.kernel.org/git/[email protected]/
- append-cflags -std=gnu17
+ append-cflags $(test-flags-CC -std=gnu17)
exportmakeopts
}
diff --git a/dev-vcs/git/git-9999-r1.ebuild b/dev-vcs/git/git-9999-r1.ebuild
index 39ba0bb5efe7..9701a056aae7 100644
--- a/dev-vcs/git/git-9999-r1.ebuild
+++ b/dev-vcs/git/git-9999-r1.ebuild
@@ -324,7 +324,7 @@ git_emake() {
src_configure() {
# https://lore.kernel.org/git/[email protected]/
- append-cflags -std=gnu17
+ append-cflags $(test-flags-CC -std=gnu17)
exportmakeopts
}
diff --git a/dev-vcs/git/git-9999-r2.ebuild b/dev-vcs/git/git-9999-r2.ebuild
index 39ba0bb5efe7..9701a056aae7 100644
--- a/dev-vcs/git/git-9999-r2.ebuild
+++ b/dev-vcs/git/git-9999-r2.ebuild
@@ -324,7 +324,7 @@ git_emake() {
src_configure() {
# https://lore.kernel.org/git/[email protected]/
- append-cflags -std=gnu17
+ append-cflags $(test-flags-CC -std=gnu17)
exportmakeopts
}
diff --git a/dev-vcs/git/git-9999-r3.ebuild b/dev-vcs/git/git-9999-r3.ebuild
index 39ba0bb5efe7..9701a056aae7 100644
--- a/dev-vcs/git/git-9999-r3.ebuild
+++ b/dev-vcs/git/git-9999-r3.ebuild
@@ -324,7 +324,7 @@ git_emake() {
src_configure() {
# https://lore.kernel.org/git/[email protected]/
- append-cflags -std=gnu17
+ append-cflags $(test-flags-CC -std=gnu17)
exportmakeopts
}
diff --git a/dev-vcs/git/git-9999.ebuild b/dev-vcs/git/git-9999.ebuild
index 39ba0bb5efe7..9701a056aae7 100644
--- a/dev-vcs/git/git-9999.ebuild
+++ b/dev-vcs/git/git-9999.ebuild
@@ -324,7 +324,7 @@ git_emake() {
src_configure() {
# https://lore.kernel.org/git/[email protected]/
- append-cflags -std=gnu17
+ append-cflags $(test-flags-CC -std=gnu17)
exportmakeopts
}