Set correct LDFLAGS for universal binaries

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Aleksandar Topuzović 2010-02-13 23:38:50 +01:00 committed by Adam Vandenberg
parent 9a1af42a5e
commit 2e3585872b

View File

@ -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 = ' '