Add CPPFLAG for ncurses flag under 10.6.
This commit is contained in:
parent
512a3da886
commit
e4a32736cd
@ -149,6 +149,11 @@ 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
|
||||||
|
# See: http://bugs.python.org/issue6848
|
||||||
|
def ncurses_define
|
||||||
|
append 'CPPFLAGS', "-DNCURSES_OPAQUE=0"
|
||||||
|
end
|
||||||
# returns the compiler we're using
|
# returns the compiler we're using
|
||||||
def cc
|
def cc
|
||||||
ENV['CC'] or "gcc"
|
ENV['CC'] or "gcc"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user