diff options
| author | Misty De Meo | 2013-04-13 21:11:14 -0500 |
|---|---|---|
| committer | Misty De Meo | 2013-06-08 19:10:38 -0500 |
| commit | 30c79ab65b7bf121cf80f8be051facf4e542c8b5 (patch) | |
| tree | c1ed4367b2247775dbf98239a21dd7700444d080 /Library/Homebrew/extend | |
| parent | aa866da68bab78a28081c67a42bf6dc14194d14e (diff) | |
| download | homebrew-30c79ab65b7bf121cf80f8be051facf4e542c8b5.tar.bz2 | |
Add :ld64 dependency
This allows formulae which won't build with Tiger's ld to conditionally
request a dependency on the ld64 formula. This modifies the build
environment appropriately, and will only be active on Tiger.
Diffstat (limited to 'Library/Homebrew/extend')
| -rw-r--r-- | Library/Homebrew/extend/ENV.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb index 35f14bf0d..db17f2255 100644 --- a/Library/Homebrew/extend/ENV.rb +++ b/Library/Homebrew/extend/ENV.rb @@ -375,6 +375,13 @@ module HomebrewEnvExtension Hardware.processor_count end end + + # ld64 is a newer linker provided for Xcode 2.5 + def ld64 + ld64 = Formula.factory('ld64') + self['LD'] = ld64.bin/'ld' + append "LDFLAGS", "-B#{ld64.bin.to_s+"/"}" + end end class << ENV |
