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@gentoo.org>
This commit is contained in:
Sam James
2025-05-19 23:54:56 +01:00
parent ae061caa32
commit d968c9fdbe

View File

@@ -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)"