Add CPPFLAG for ncurses flag under 10.6.

This commit is contained in:
Adam Vandenberg 2009-09-26 20:01:16 -07:00 committed by Max Howell
parent 512a3da886
commit e4a32736cd

View File

@ -149,6 +149,11 @@ 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
ENV['CC'] or "gcc"