link libmapnik and boost system to help avoid any linking errors with more recent boost - closes #1567

This commit is contained in:
Dane Springmeyer 2012-11-08 15:07:50 -05:00
parent 1c74e61249
commit 5c0c072b21
11 changed files with 42 additions and 40 deletions

View file

@ -16,8 +16,6 @@
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
# $Id$
import os
import sys

View file

@ -31,6 +31,9 @@ install_prefix = env['DESTDIR'] + '/' + prefix
linkflags = ''
libraries = ['mapnik','png','jpeg']
if env['HAS_BOOST_SYSTEM']:
libraries.append('boost_system%s' % env['BOOST_APPEND'])
if env['BOOST_PYTHON_LIB']:
libraries.append(env['BOOST_PYTHON_LIB'])
else:

View file

@ -32,9 +32,10 @@ gdal_src = Split(
)
libraries = [env['PLUGINS']['gdal']['lib']]
if env['PLATFORM'] == 'Darwin':
libraries.append('mapnik')
libraries.append(env['ICU_LIB_NAME'])
libraries.append('mapnik')
libraries.append(env['ICU_LIB_NAME'])
if env['HAS_BOOST_SYSTEM']:
libraries.append('boost_system%s' % env['BOOST_APPEND'])
gdal_inputdriver = env.SharedLibrary('gdal', source=gdal_src, SHLIBPREFIX='', SHLIBSUFFIX='.input', LIBS=libraries)

View file

@ -32,10 +32,11 @@ kismet_src = Split(
)
libraries = []
if env['PLATFORM'] == 'Darwin':
libraries.append('mapnik')
libraries.append(env['ICU_LIB_NAME'])
libraries.append('boost_thread%s' % env['BOOST_APPEND'])
libraries.append('mapnik')
libraries.append(env['ICU_LIB_NAME'])
libraries.append('boost_thread%s' % env['BOOST_APPEND'])
if env['HAS_BOOST_SYSTEM']:
libraries.append('boost_system%s' % env['BOOST_APPEND'])
kismet_inputdriver = env.SharedLibrary('../kismet', source=kismet_src, SHLIBPREFIX='', SHLIBSUFFIX='.input', LIBS=libraries)

View file

@ -35,9 +35,10 @@ occi_src = Split(
)
libraries = [ 'occi', 'ociei' ]
if env['PLATFORM'] == 'Darwin':
libraries.append('mapnik')
libraries.append(env['ICU_LIB_NAME'])
libraries.append('mapnik')
libraries.append(env['ICU_LIB_NAME'])
if env['HAS_BOOST_SYSTEM']:
libraries.append('boost_system%s' % env['BOOST_APPEND'])
occi_inputdriver = env.SharedLibrary('../occi', source=occi_src, SHLIBPREFIX='', SHLIBSUFFIX='.input', LIBS=libraries)

View file

@ -35,13 +35,10 @@ ogr_src = Split(
libraries = [env['PLUGINS']['ogr']['lib']]
libraries.append(['boost_iostreams%s' % env['BOOST_APPEND']])
if env['PLATFORM'] == 'Darwin':
if env['HAS_BOOST_SYSTEM']:
boost_system = 'boost_system%s' % env['BOOST_APPEND']
libraries.append(boost_system)
libraries.append('mapnik')
libraries.append(env['ICU_LIB_NAME'])
if env['HAS_BOOST_SYSTEM']:
libraries.append('boost_system%s' % env['BOOST_APPEND'])
libraries.append('mapnik')
libraries.append(env['ICU_LIB_NAME'])
ogr_inputdriver = env.SharedLibrary('../ogr', source=ogr_src, SHLIBPREFIX='', SHLIBSUFFIX='.input', LIBS=libraries)

View file

@ -37,9 +37,10 @@ osm_src = Split(
libraries = [ 'xml2' ]
libraries.append('curl')
if env['PLATFORM'] == 'Darwin':
libraries.append('mapnik')
libraries.append(env['ICU_LIB_NAME'])
libraries.append('mapnik')
libraries.append(env['ICU_LIB_NAME'])
if env['HAS_BOOST_SYSTEM']:
libraries.append('boost_system%s' % env['BOOST_APPEND'])
osm_inputdriver = env.SharedLibrary('../osm', source=osm_src, SHLIBPREFIX='', SHLIBSUFFIX='.input', LIBS=libraries)

View file

@ -33,11 +33,12 @@ postgis_src = Split(
libraries = ['pq']
if env['PLATFORM'] == 'Darwin':
libraries.append('mapnik')
libraries.append(env['ICU_LIB_NAME'])
if env['THREADING'] == 'multi':
libraries.append('boost_thread%s' % env['BOOST_APPEND'])
libraries.append('mapnik')
libraries.append(env['ICU_LIB_NAME'])
if env['THREADING'] == 'multi':
libraries.append('boost_thread%s' % env['BOOST_APPEND'])
if env['HAS_BOOST_SYSTEM']:
libraries.append('boost_system%s' % env['BOOST_APPEND'])
postgis_inputdriver = env.SharedLibrary('../postgis', source=postgis_src, SHLIBPREFIX='', SHLIBSUFFIX='.input', LIBS=libraries)

View file

@ -33,11 +33,11 @@ raster_src = Split(
)
libraries = []
if env['PLATFORM'] == 'Darwin':
libraries.append('mapnik')
libraries.append(env['ICU_LIB_NAME'])
libraries.append('mapnik')
libraries.append(env['ICU_LIB_NAME'])
if env['HAS_BOOST_SYSTEM']:
libraries.append('boost_system%s' % env['BOOST_APPEND'])
libraries.append('boost_filesystem%s' % env['BOOST_APPEND'])
libraries.append('boost_filesystem%s' % env['BOOST_APPEND'])
raster_inputdriver = env.SharedLibrary('../raster', source=raster_src, SHLIBPREFIX='', SHLIBSUFFIX='.input', LIBS=libraries)

View file

@ -37,12 +37,11 @@ shape_src = Split(
)
libraries = ['boost_iostreams%s' % env['BOOST_APPEND']]
if env['PLATFORM'] == 'Darwin':
libraries.append('mapnik')
libraries.append(env['ICU_LIB_NAME'])
libraries.append('mapnik')
libraries.append(env['ICU_LIB_NAME'])
if env['HAS_BOOST_SYSTEM']:
libraries.append('boost_system%s' % env['BOOST_APPEND'])
libraries.append('boost_filesystem%s' % env['BOOST_APPEND'])
libraries.append('boost_filesystem%s' % env['BOOST_APPEND'])
env2 = env.Clone()
if env['SHAPE_MEMORY_MAPPED_FILE']:

View file

@ -32,11 +32,11 @@ sqlite_src = Split(
)
libraries = [ 'sqlite3' ]
if env['PLATFORM'] == 'Darwin':
libraries.append('mapnik')
libraries.append(env['ICU_LIB_NAME'])
libraries.append('mapnik')
libraries.append(env['ICU_LIB_NAME'])
if env['HAS_BOOST_SYSTEM']:
libraries.append('boost_system%s' % env['BOOST_APPEND'])
libraries.append('boost_filesystem%s' % env['BOOST_APPEND'])
libraries.append('boost_filesystem%s' % env['BOOST_APPEND'])
sqlite_inputdriver = env.SharedLibrary('../sqlite', source=sqlite_src, SHLIBPREFIX='', SHLIBSUFFIX='.input', LIBS=libraries)