diff options
| author | Misty De Meo | 2013-05-23 19:04:25 -0500 |
|---|---|---|
| committer | Misty De Meo | 2016-04-22 22:37:21 -0700 |
| commit | da643d942ee1b8856421956210dab99f2eaf4daa (patch) | |
| tree | 7961433ed874ed908f9accad69e8bdd6c01906f9 /Library | |
| parent | 765cd216f0c9141239f6b2472335f602be869072 (diff) | |
| download | brew-da643d942ee1b8856421956210dab99f2eaf4daa.tar.bz2 | |
Explicitly list -arch in LDFLAGS on Leopard
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/extend/ENV/std.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/ENV/std.rb b/Library/Homebrew/extend/ENV/std.rb index 41bd9aa24..ae9c3617c 100644 --- a/Library/Homebrew/extend/ENV/std.rb +++ b/Library/Homebrew/extend/ENV/std.rb @@ -67,6 +67,17 @@ module Stdenv append_path "PATH", "#{MacOS::Xcode.prefix}/usr/bin" append_path "PATH", "#{MacOS::Xcode.toolchain_path}/usr/bin" end + + # Leopard's ld needs some convincing that it's building 64-bit + # See: https://github.com/mistydemeo/tigerbrew/issues/59 + if MacOS.version == :leopard && MacOS.prefer_64_bit? + append "LDFLAGS", "-arch #{Hardware::CPU.arch_64_bit}" + + # Many, many builds are broken thanks to Leopard's buggy ld. + # Our ld64 fixes many of those builds, though of course we can't + # depend on it already being installed to build itself. + ld64 if Formula["ld64"].installed? + end end # @private |
