diff options
author | Fabian Groffen <grobian@gentoo.org> | 2016-03-02 08:47:34 +0100 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2016-03-02 08:48:39 +0100 |
commit | 6923304616286ab68c1c57240dd3ad123100a8a1 (patch) | |
tree | dad0a456d7c26b63f2b1c4564808d2031a636a6a | |
parent | sci-visualization/veusz: bump to 1.23.2 (diff) | |
download | gentoo-6923304616286ab68c1c57240dd3ad123100a8a1.tar.gz gentoo-6923304616286ab68c1c57240dd3ad123100a8a1.tar.bz2 gentoo-6923304616286ab68c1c57240dd3ad123100a8a1.zip |
sys-devel/gcc-apple: ensure building succeeds with more modern compilers, bug #574736
Package-Manager: portage-2.2.27-prefix
-rw-r--r-- | sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r2.ebuild | 5 |
1 files changed, 5 insertions, 0 deletions
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 5f5306f78aee..9d1eef42481b 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--}" |