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:
parent
af10c288b4
commit
8c3cd5f3c8
1 changed files with 0 additions and 8 deletions
|
|
@ -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'))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue