commit:     1b6a506bddd3cf1315008950c7ad92950de977b3
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Wed Dec  4 04:52:12 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Dec 12 11:08:51 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b6a506b

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 <floppym <AT> gentoo.org>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 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 c4d10ec5f128..a9e1c6f20e1a 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

Reply via email to