scons: make sure to build a .os file instead of .o

This commit is contained in:
Dane Springmeyer 2010-07-14 01:26:30 +00:00
parent 146c13ba09
commit 284669b322

View file

@ -143,7 +143,7 @@ if env.get('SVN_REVISION'):
sources.remove('mapnik_python.cpp') sources.remove('mapnik_python.cpp')
env2 = env.Clone(); env2 = env.Clone();
env2.Append(CCFLAGS='-DSVN_REVISION=%s' % env['SVN_REVISION']) env2.Append(CCFLAGS='-DSVN_REVISION=%s' % env['SVN_REVISION'])
sources.insert(0,env2.Object('mapnik_python.cpp')) sources.insert(0,env2.SharedObject('mapnik_python.cpp'))
_mapnik = env.LoadableModule('mapnik/_mapnik2', sources, LIBS=libraries, LDMODULEPREFIX='', LDMODULESUFFIX='.so', CPPPATH=headers,LINKFLAGS=linkflags) _mapnik = env.LoadableModule('mapnik/_mapnik2', sources, LIBS=libraries, LDMODULEPREFIX='', LDMODULESUFFIX='.so', CPPPATH=headers,LINKFLAGS=linkflags)
pymapniklib = env.Install(env['PYTHON_INSTALL_LOCATION'] + '/mapnik2',_mapnik) pymapniklib = env.Install(env['PYTHON_INSTALL_LOCATION'] + '/mapnik2',_mapnik)