Set correct LDFLAGS for universal binaries
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
9a1af42a5e
commit
2e3585872b
@ -205,6 +205,7 @@ module HomebrewEnvExtension
|
|||||||
def universal_binary
|
def universal_binary
|
||||||
append_to_cflags '-arch i386 -arch x86_64'
|
append_to_cflags '-arch i386 -arch x86_64'
|
||||||
ENV.O3 if self['CFLAGS'].include? '-O4' # O4 seems to cause the build to fail
|
ENV.O3 if self['CFLAGS'].include? '-O4' # O4 seems to cause the build to fail
|
||||||
|
ENV.append 'LDFLAGS', '-arch i386 -arch x86_64'
|
||||||
end
|
end
|
||||||
|
|
||||||
def prepend key, value, separator = ' '
|
def prepend key, value, separator = ' '
|
||||||
|
Loading…
x
Reference in New Issue
Block a user