From 05a8077c57a82313ffb1323d939a36772f7f61a3 Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Tue, 3 Dec 2024 23:52:12 -0500 Subject: [PATCH] app-text/ghostscript-gpl: work around broken build system The homegrown Makefiles pass CFLAGS to the C++ compiler. Add "-std=gnu17" to CC to avoid an error with clang++. Closes: https://bugs.gentoo.org/945826 Signed-off-by: Mike Gilbert --- app-text/ghostscript-gpl/ghostscript-gpl-10.04.0.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app-text/ghostscript-gpl/ghostscript-gpl-10.04.0.ebuild b/app-text/ghostscript-gpl/ghostscript-gpl-10.04.0.ebuild index 054a3505cd91..f40be5d59392 100644 --- a/app-text/ghostscript-gpl/ghostscript-gpl-10.04.0.ebuild +++ b/app-text/ghostscript-gpl/ghostscript-gpl-10.04.0.ebuild @@ -127,7 +127,9 @@ src_configure() { filter-lto # bug #943857 - append-cflags -std=gnu17 + # Build system passes CFLAGS to C++ compiler (bug #945826) + tc-export CC + CC+=" -std=gnu17" # bug #899952 append-lfs-flags -- 2.47.1