Removed some unnecessary compiler flags when building the Python module

Specifically, these flags cause problems when compiling with the Enthought
Python Distribution on OS X.
This commit is contained in:
Ray Speth 2012-10-25 15:05:03 +00:00
parent af10c288b4
commit 8c3cd5f3c8

View file

@ -12,16 +12,8 @@ gcv = distutils.sysconfig.get_config_var
localenv = env.Clone()
localenv.Append(CPPPATH=[gcv('INCLUDEPY'), env['python_array_include']],
CPPFLAGS=((gcv('BASECFLAGS') or '').split() +
(gcv('OPT') or '').split()),
LIBPATH=(gcv('LIBDIR') or ''))
if '-Wstrict-prototypes' in localenv['CPPFLAGS']:
localenv['CPPFLAGS'].remove('-Wstrict-prototypes')
if '-g' in localenv['CPPFLAGS'] and not env['debug']:
localenv['CPPFLAGS'].remove('-g')
if localenv['OS'] == 'Windows':
localenv.Append(LIBPATH=pjoin(gcv('prefix'), 'libs'))