commit:     d968c9fdbe86888cffc56ec580503b1eff40b764
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon May 19 22:54:56 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon May 19 22:54:56 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d968c9fd

app-text/calibre: only add -std=gnu17 for GCC

The build system adds CFLAGS into CXXFLAGS which upsets Clang.

Clang hasn't changed its default yet, so this is good enough as a temporary
workaround (as it's fixed upstream anyway here).

Closes: https://bugs.gentoo.org/956329
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-text/calibre/calibre-7.22.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-text/calibre/calibre-7.22.0.ebuild 
b/app-text/calibre/calibre-7.22.0.ebuild
index 9ee965558d70..190fc9eea729 100644
--- a/app-text/calibre/calibre-7.22.0.ebuild
+++ b/app-text/calibre/calibre-7.22.0.ebuild
@@ -166,7 +166,7 @@ src_compile() {
 
        # Workaround for GCC 15 (bug #949509)
        # Can be dropped w/ >=7.25.0
-       append-cflags -std=gnu17
+       tc-is-gcc && append-cflags -std=gnu17
 
        # bug 821871
        local MY_LIBDIR="${ESYSROOT}/usr/$(get_libdir)"

Reply via email to