From 8c3cd5f3c8b7c17d4e1ce35fd0b089eb7e07473d Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Thu, 25 Oct 2012 15:05:03 +0000 Subject: [PATCH] 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. --- src/python/SConscript | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/python/SConscript b/src/python/SConscript index c18709425..06da1a455 100644 --- a/src/python/SConscript +++ b/src/python/SConscript @@ -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'))