From 30c79ab65b7bf121cf80f8be051facf4e542c8b5 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Sat, 13 Apr 2013 21:11:14 -0500 Subject: 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. --- Library/Homebrew/extend/ENV.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Library/Homebrew/extend') 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 -- cgit v1.2.3