diff options
| -rw-r--r-- | Library/Homebrew/extend/ENV.rb | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb index dc0061a91..9edb70f05 100644 --- a/Library/Homebrew/extend/ENV.rb +++ b/Library/Homebrew/extend/ENV.rb @@ -175,13 +175,11 @@ module HomebrewEnvExtension 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 - - # CFLAGS are read quite a bit - def cflags; ENV['CFLAGS']; end - def ldflags; ENV['LDFLAGS']; end + # Shortcuts for reading common flags + def cc; self['CC'] or "gcc"; end + def cxx; self['CXX'] or "g++"; end + def cflags; self['CFLAGS']; end + def ldflags; self['LDFLAGS']; end def m64 append_to_cflags '-m64' |
