1 |
commit: 6923304616286ab68c1c57240dd3ad123100a8a1 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 2 07:47:34 2016 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 2 07:48:39 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69233046 |
7 |
|
8 |
sys-devel/gcc-apple: ensure building succeeds with more modern compilers, bug #574736 |
9 |
|
10 |
Package-Manager: portage-2.2.27-prefix |
11 |
|
12 |
sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r2.ebuild | 5 +++++ |
13 |
1 file changed, 5 insertions(+) |
14 |
|
15 |
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 |
16 |
index 5f5306f..9d1eef4 100644 |
17 |
--- a/sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r2.ebuild |
18 |
+++ b/sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r2.ebuild |
19 |
@@ -246,6 +246,11 @@ src_configure() { |
20 |
[[ ${CTARGET} == powerpc64-* || ${CTARGET} == x86_64-* ]] && \ |
21 |
export CC="${CC:-$(tc-getCC)} -m64" |
22 |
|
23 |
+ # Clang on OSX defaults to c99 mode, while GCC defaults to gnu89 |
24 |
+ # (C90 + extensions). This makes Clang barf on GCC's sources, so |
25 |
+ # work around that. Bugs #491098, #574736 |
26 |
+ export CC="${CC:-$(tc-getCC)} -std=gnu89" |
27 |
+ |
28 |
mkdir -p "${WORKDIR}"/build |
29 |
cd "${WORKDIR}"/build |
30 |
einfo "Configuring GCC with: ${myconf//--/\n\t--}" |