ENV.rb - add ENV.cflags
This commit is contained in:
parent
5d58d99d10
commit
c5a9520310
@ -168,18 +168,19 @@ module HomebrewEnvExtension
|
|||||||
def enable_warnings
|
def enable_warnings
|
||||||
remove_from_cflags '-w'
|
remove_from_cflags '-w'
|
||||||
end
|
end
|
||||||
|
|
||||||
# Snow Leopard defines an NCURSES value the opposite of most distros
|
# Snow Leopard defines an NCURSES value the opposite of most distros
|
||||||
# See: http://bugs.python.org/issue6848
|
# See: http://bugs.python.org/issue6848
|
||||||
def ncurses_define
|
def ncurses_define
|
||||||
append 'CPPFLAGS', "-DNCURSES_OPAQUE=0"
|
append 'CPPFLAGS', "-DNCURSES_OPAQUE=0"
|
||||||
end
|
end
|
||||||
|
|
||||||
# returns the compiler we're using
|
# returns the compiler we're using
|
||||||
def cc
|
def cc; self['CC'] or "gcc"; end
|
||||||
self['CC'] or "gcc"
|
def cxx; self['CXX'] or "g++"; end
|
||||||
end
|
|
||||||
def cxx
|
# CFLAGS are read quite a bit
|
||||||
self['CXX'] or "g++"
|
def cflags; ENV['CFLAGS']; end
|
||||||
end
|
|
||||||
|
|
||||||
def m64
|
def m64
|
||||||
append_to_cflags '-m64'
|
append_to_cflags '-m64'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user