ENV.universal_binary
Note, we still don't support PPC, this builds a 32 bit, 64 bit binary.
This commit is contained in:
parent
9d290b4502
commit
595dbc5710
@ -175,6 +175,15 @@ module HomebrewEnvExtension
|
||||
append_to_cflags '-m64'
|
||||
ENV['LDFLAGS'] += '-arch x86_64'
|
||||
end
|
||||
# i386 and x86_64 only, no PPC
|
||||
def universal_binary
|
||||
append_to_cflags '-arch i386 -arch x86_64'
|
||||
if self['CFLAGS'].include? '-O4'
|
||||
# O4 seems to cause the build to fail
|
||||
remove_from_cflags '-O4'
|
||||
append_to_cflags '-O3'
|
||||
end
|
||||
end
|
||||
|
||||
def prepend key, value, separator = ' '
|
||||
unless self[key].to_s.empty?
|
||||
|
Loading…
x
Reference in New Issue
Block a user