commit: 9ba6c0e0f18d1266e8c897c4bcd3ffa12bb4795a
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 6 13:00:01 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Dec 6 13:03:27 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ba6c0e0
sys-libs/gdbm: 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>
sys-libs/gdbm/gdbm-1.24.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys-libs/gdbm/gdbm-1.24.ebuild b/sys-libs/gdbm/gdbm-1.24.ebuild
index 122b7b2c8098..1dec3b5c1908 100644
--- a/sys-libs/gdbm/gdbm-1.24.ebuild
+++ b/sys-libs/gdbm/gdbm-1.24.ebuild
@@ -36,7 +36,7 @@ src_prepare() {
multilib_src_configure() {
# https://puszcza.gnu.org.ua/bugs/index.php?642
- append-cflags -std=gnu17
+ append-cflags $(test-flags-CC -std=gnu17)
# gdbm doesn't appear to use either of these libraries
export ac_cv_lib_dbm_main=no ac_cv_lib_ndbm_main=no