+ link to boost_system if boost_version >= 1.50

This commit is contained in:
artemp 2012-07-02 18:10:48 +01:00
parent e69c44e3d3
commit 4b4cfdd462

View file

@ -47,6 +47,12 @@ libraries = []
boost_program_options = 'boost_program_options%s' % env['BOOST_APPEND']
libraries.extend([boost_program_options,'sqlite3','pq','mapnik','icuuc'])
if env.get('BOOST_LIB_VERSION_FROM_HEADER'):
boost_version_from_header = int(env['BOOST_LIB_VERSION_FROM_HEADER'].split('_')[1])
if boost_version_from_header >= 50:
boost_system = 'boost_system%s' % env['BOOST_APPEND']
libraries.extend([boost_system])
linkflags = env['CUSTOM_LDFLAGS']
if env['SQLITE_LINKFLAGS']:
linkflags.append(env['SQLITE_LINKFLAGS'])