Apply new ENV capabilities to all existing Formulae

This commit is contained in:
Max Howell 2009-08-07 15:41:43 +01:00
parent 760c083c0c
commit dccc2b1923

View File

@ -79,6 +79,13 @@ module HomebrewEnvExtension
def generic_i386 def generic_i386
%w[-mfpmath=sse -msse3 -mmmx -march=\w+].each {|s| remove_from_cflags s} %w[-mfpmath=sse -msse3 -mmmx -march=\w+].each {|s| remove_from_cflags s}
end end
def libxml2
self['CXXFLAGS']=self['CFLAGS']+=' -I/usr/include/libxml2'
end
# we've seen some packages fail to build when warnings are disabled!
def enable_warnings
remove_from_cflags '-w'
end
private private
def remove key, rx def remove key, rx
# sub! doesn't work as "the string is frozen" # sub! doesn't work as "the string is frozen"