aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
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"