aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2009-08-07 15:41:43 +0100
committerMax Howell2009-08-10 18:11:22 +0100
commitdccc2b192328e864b2bdb1b6758e0b4315cf0cfc (patch)
tree43a4af57707b2ba8caa1f7b6cf5093fb440687c4 /Library
parent760c083c0c0c9934e4118b4669c8c8dfd0a3587d (diff)
downloadbrew-dccc2b192328e864b2bdb1b6758e0b4315cf0cfc.tar.bz2
Apply new ENV capabilities to all existing Formulae
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/brewkit.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Homebrew/brewkit.rb b/Library/Homebrew/brewkit.rb
index bddc2cca6..7171006b8 100644
--- a/Library/Homebrew/brewkit.rb
+++ b/Library/Homebrew/brewkit.rb
@@ -79,6 +79,13 @@ module HomebrewEnvExtension
def generic_i386
%w[-mfpmath=sse -msse3 -mmmx -march=\w+].each {|s| remove_from_cflags s}
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
def remove key, rx
# sub! doesn't work as "the string is frozen"