From 6923304616286ab68c1c57240dd3ad123100a8a1 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Wed, 2 Mar 2016 08:47:34 +0100 Subject: [PATCH] sys-devel/gcc-apple: ensure building succeeds with more modern compilers, bug #574736 Package-Manager: portage-2.2.27-prefix --- sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r2.ebuild | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r2.ebuild b/sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r2.ebuild index 5f5306f78aee9..9d1eef42481ba 100644 --- a/sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r2.ebuild +++ b/sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r2.ebuild @@ -246,6 +246,11 @@ src_configure() { [[ ${CTARGET} == powerpc64-* || ${CTARGET} == x86_64-* ]] && \ export CC="${CC:-$(tc-getCC)} -m64" + # Clang on OSX defaults to c99 mode, while GCC defaults to gnu89 + # (C90 + extensions). This makes Clang barf on GCC's sources, so + # work around that. Bugs #491098, #574736 + export CC="${CC:-$(tc-getCC)} -std=gnu89" + mkdir -p "${WORKDIR}"/build cd "${WORKDIR}"/build einfo "Configuring GCC with: ${myconf//--/\n\t--}"