From 2e3585872b0e5856cce6c53b178744bc10a91c0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleksandar=20Topuzovi=C4=87?= Date: Sat, 13 Feb 2010 23:38:50 +0100 Subject: [PATCH] Set correct LDFLAGS for universal binaries Signed-off-by: Adam Vandenberg --- Library/Homebrew/extend/ENV.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb index 01e90394a3..81714fa159 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 = ' '