Skip to content

Commit

Permalink
sys-devel/gcc-apple: ensure building succeeds with more modern compil…
Browse files Browse the repository at this point in the history
…ers, bug #574736

Package-Manager: portage-2.2.27-prefix
  • Loading branch information
grobian committed Mar 2, 2016
1 parent 1eddb16 commit 6923304
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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--}"
Expand Down

0 comments on commit 6923304

Please sign in to comment.