OSX build fix

metadata
Wenzel Jakob 2011-08-16 00:31:55 -04:00
parent 69bc051f2c
commit 7dea158d5f
1 changed files with 4 additions and 1 deletions

View File

@ -3,7 +3,10 @@ Import('env', 'sys', 'os', 'hasPython')
pythonEnv = env.Clone() pythonEnv = env.Clone()
pythonEnv.Append(CPPDEFINES = [['MTS_BUILD_MODULE', 'MTS_MODULE_PYTHON']]) pythonEnv.Append(CPPDEFINES = [['MTS_BUILD_MODULE', 'MTS_MODULE_PYTHON']])
pythonEnv['SHLIBPREFIX']='' pythonEnv['SHLIBPREFIX']=''
pythonEnv['CXXFLAGS'].remove('-g') try:
pythonEnv['CXXFLAGS'].remove('-g')
except:
pass
if pythonEnv.has_key('PYTHONINCLUDE'): if pythonEnv.has_key('PYTHONINCLUDE'):
pythonEnv.Prepend(CPPPATH=pythonEnv['PYTHONINCLUDE']) pythonEnv.Prepend(CPPPATH=pythonEnv['PYTHONINCLUDE'])