diff options
| author | Tom von Schwerdtner | 2009-09-04 01:15:40 -0400 |
|---|---|---|
| committer | Max Howell | 2009-09-04 15:40:31 +0100 |
| commit | 4d940628cc71c57e63f9c414199db7cee6ff549d (patch) | |
| tree | 8258ea3d9b8bdf23fd501e6237cdb21626ad9325 | |
| parent | c6d98678acaf899ea777d335a3abe1abb8a9e1d4 (diff) | |
| download | brew-4d940628cc71c57e63f9c414199db7cee6ff549d.tar.bz2 | |
Plain Core Duo can't execute 64 bit code
| -rw-r--r-- | Library/Homebrew/brewkit.rb | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Library/Homebrew/brewkit.rb b/Library/Homebrew/brewkit.rb index e7eae94e1..4c9bdbc26 100644 --- a/Library/Homebrew/brewkit.rb +++ b/Library/Homebrew/brewkit.rb @@ -37,6 +37,9 @@ require 'hardware' MACOS_VERSION=$1.to_f ENV['MACOSX_DEPLOYMENT_TARGET']=$1 +# to be consistent with cflags, we ignore the existing environment +ENV['LDFLAGS']="" + cflags=%w[-O3] # optimise all the way to eleven, references: @@ -46,12 +49,12 @@ cflags=%w[-O3] if MACOS_VERSION >= 10.6 case Hardware.intel_family when :penryn, :core2 - cflags<<"-march=core2" + # no need to add -mfpmath when you specify -m64 + cflags<<"-march=core2"<<'-m64' + ENV['LDFLAGS']="-arch x86_64" when :core - cflags<<"-march=prescott" + cflags<<"-march=prescott"<<"-mfpmath=sse" end - ENV['LDFLAGS']="-arch x86_64" - cflags<<"-m64" else case Hardware.intel_family when :penryn, :core2 @@ -59,8 +62,6 @@ else when :core cflags<<"-march=prescott" end - # to be consistent with cflags, we ignore the existing environment - ENV['LDFLAGS']="" cflags<<"-mfpmath=sse" # gcc 4.0 is the default on Leopard ENV['CC']="gcc-4.2" |
