ENV.rb - add ENV.cflags

This commit is contained in:
Adam Vandenberg 2010-08-10 08:01:06 -07:00
parent 5d58d99d10
commit c5a9520310

View File

@ -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'