Permalink
Browse files

Fix build with Lion and XCode 4.1

Apparenty Apple supplied llvm-gcc is not able to bootstrap gcc. Workaround is to build gcc with clang. Bug is similar to:

https://trac.macports.org/ticket/29104
  • Loading branch information...
1 parent 3a4f8ce commit 124853640317af04e11269c517d449dbd202773d @tuupola committed Sep 18, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 avr/avr-gcc.rb
View
@@ -51,6 +51,10 @@ def install
ENV.delete 'NM'
ENV.delete 'RANLIB'
+ if MacOS.lion?
+ ENV['CC'] = 'clang'
+ end
+
args = [
"--target=avr",
"--disable-libssp",

0 comments on commit 1248536

Please sign in to comment.