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

This commit is contained in:
Dane Springmeyer 2010-07-14 01:26:21 +00:00
parent f187cb7a12
commit a8b147156d

View file

@ -140,7 +140,7 @@ if env.get('SVN_REVISION'):
sources.remove('mapnik_python.cpp')
env2 = env.Clone();
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'))
# install the shared object beside the module directory
_mapnik = env.LoadableModule('mapnik/_mapnik', sources, LIBS=libraries, LDMODULEPREFIX='', LDMODULESUFFIX='.so', CPPPATH=headers,LINKFLAGS=linkflags)