aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-08-10 08:01:06 -0700
committerAdam Vandenberg2010-08-10 08:30:11 -0700
commitc5a952031025dc6ad7ed6e307251d00e49332bc0 (patch)
tree2731f2178222731f31e907501836f04541ff1a01 /Library
parent5d58d99d10c407d80450e3d639e1c266e3fb47c0 (diff)
downloadbrew-c5a952031025dc6ad7ed6e307251d00e49332bc0.tar.bz2
ENV.rb - add ENV.cflags
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/ENV.rb13
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'