Permalink
Browse files

future proof linking of postgis plugin against boost 1.50

  • Loading branch information...
1 parent 718d3a4 commit 8dea5a5fe2392332cbe503edc344f37cd4221bff Dane Springmeyer committed Jul 5, 2012
Showing with 6 additions and 0 deletions.
  1. +3 −0 plugins/input/kismet/build.py
  2. +3 −0 plugins/input/postgis/build.py
@@ -38,6 +38,9 @@
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'])
+
input_plugin = plugin_env.SharedLibrary('../kismet', source=kismet_src, SHLIBPREFIX='', SHLIBSUFFIX='.input', LIBS=libraries, LINKFLAGS=env['CUSTOM_LDFLAGS'])
# if the plugin links to libmapnik ensure it is built first
@@ -41,6 +41,9 @@
if env['THREADING'] == 'multi':
plugin_env['LIBS'].append('boost_thread%s' % env['BOOST_APPEND'])
+if env['HAS_BOOST_SYSTEM']:
+ plugin_env['LIBS'].append('boost_system%s' % env['BOOST_APPEND'])
+
if env['RUNTIME_LINK'] == 'static':
#cmd = 'pg_config --libs'
#plugin_env.ParseConfig(cmd)

0 comments on commit 8dea5a5

Please sign in to comment.