aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAleksandar Topuzović2010-02-13 23:38:50 +0100
committerAdam Vandenberg2010-02-13 17:21:42 -0800
commitf6dced58050d0005c3e4ac6f13817871edced3c6 (patch)
treec31836a87c95300ad0f009b744d670e7235b980b /Library
parentcaeb071e957cf0d9c6f2aedebfac44516d4afa8f (diff)
downloadhomebrew-f6dced58050d0005c3e4ac6f13817871edced3c6.tar.bz2
Set correct LDFLAGS for universal binaries
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/ENV.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb
index 01e90394a..81714fa15 100644
--- a/Library/Homebrew/extend/ENV.rb
+++ b/Library/Homebrew/extend/ENV.rb
@@ -205,6 +205,7 @@ module HomebrewEnvExtension
def universal_binary
append_to_cflags '-arch i386 -arch x86_64'
ENV.O3 if self['CFLAGS'].include? '-O4' # O4 seems to cause the build to fail
+ ENV.append 'LDFLAGS', '-arch i386 -arch x86_64'
end
def prepend key, value, separator = ' '