commit:     0f6feebad9dc1fe5aa74a8def3793b1d3cd6ff9a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Dec  6 12:59:23 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=0f6feeba

sys-apps/texinfo: 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-apps/texinfo/texinfo-7.1.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-apps/texinfo/texinfo-7.1.1.ebuild 
b/sys-apps/texinfo/texinfo-7.1.1.ebuild
index 78b068309ada..82f654f95b81 100644
--- a/sys-apps/texinfo/texinfo-7.1.1.ebuild
+++ b/sys-apps/texinfo/texinfo-7.1.1.ebuild
@@ -72,7 +72,7 @@ src_prepare() {
 src_configure() {
        # https://lists.gnu.org/archive/html/bug-texinfo/2024-08/msg00020.html
        # 
https://git.savannah.gnu.org/cgit/texinfo.git/commit/?id=7e8d0093b411729c8c570b25280bef6b55415594
-       append-cflags -std=gnu17
+       append-cflags $(test-flags-CC -std=gnu17)
 
        # Respect compiler and CPPFLAGS/CFLAGS/LDFLAGS for Perl extensions
        # bug #622576

Reply via email to