From d968c9fdbe86888cffc56ec580503b1eff40b764 Mon Sep 17 00:00:00 2001 From: Sam James Date: Mon, 19 May 2025 23:54:56 +0100 Subject: [PATCH] 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 --- 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 9ee965558d70a..190fc9eea729d 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)"