diff options
| author | Max Howell | 2009-08-07 15:41:43 +0100 |
|---|---|---|
| committer | Max Howell | 2009-08-10 18:11:22 +0100 |
| commit | dccc2b192328e864b2bdb1b6758e0b4315cf0cfc (patch) | |
| tree | 43a4af57707b2ba8caa1f7b6cf5093fb440687c4 /Library | |
| parent | 760c083c0c0c9934e4118b4669c8c8dfd0a3587d (diff) | |
| download | brew-dccc2b192328e864b2bdb1b6758e0b4315cf0cfc.tar.bz2 | |
Apply new ENV capabilities to all existing Formulae
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/brewkit.rb | 7 |
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" |
