diff options
| author | Adam Vandenberg | 2010-08-10 08:01:06 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-08-10 08:30:11 -0700 |
| commit | f6f1af57906cb42a9d0ae323546fe7bfeff0fa99 (patch) | |
| tree | 37cad5951ac4f507dbe1959b3c795bd8d77e86f2 /Library | |
| parent | be381089e061eeb1c26a7a17e84bdcc2007207fb (diff) | |
| download | homebrew-f6f1af57906cb42a9d0ae323546fe7bfeff0fa99.tar.bz2 | |
ENV.rb - add ENV.cflags
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/extend/ENV.rb | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb index bf2ae672f..0b854544a 100644 --- a/Library/Homebrew/extend/ENV.rb +++ b/Library/Homebrew/extend/ENV.rb @@ -168,18 +168,19 @@ module HomebrewEnvExtension def enable_warnings remove_from_cflags '-w' end + # Snow Leopard defines an NCURSES value the opposite of most distros # See: http://bugs.python.org/issue6848 def ncurses_define append 'CPPFLAGS', "-DNCURSES_OPAQUE=0" end + # returns the compiler we're using - def cc - self['CC'] or "gcc" - end - def cxx - self['CXX'] or "g++" - end + def cc; self['CC'] or "gcc"; end + def cxx; self['CXX'] or "g++"; end + + # CFLAGS are read quite a bit + def cflags; ENV['CFLAGS']; end def m64 append_to_cflags '-m64' |
