From b53db334af48467fb9d04ad69f2c2468768e0851 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Wed, 19 Apr 2017 18:30:34 -0700 Subject: [PATCH] link -ldl last --- utils/pgsql2sqlite/build.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/pgsql2sqlite/build.py b/utils/pgsql2sqlite/build.py index 55c7f3fd2..9d909dfe2 100644 --- a/utils/pgsql2sqlite/build.py +++ b/utils/pgsql2sqlite/build.py @@ -54,9 +54,6 @@ else: # Link Library to Dependencies libraries = copy(program_env['LIBS']) -if env['RUNTIME_LINK'] == 'static' and env['PLATFORM'] == 'Linux': - libraries.append('dl') - if env['HAS_CAIRO']: program_env.PrependUnique(CPPPATH=env['CAIRO_CPPPATHS']) program_env.Append(CPPDEFINES = '-DHAVE_CAIRO') @@ -75,6 +72,9 @@ if env.get('BOOST_LIB_VERSION_FROM_HEADER'): if env['SQLITE_LINKFLAGS']: program_env.Append(LINKFLAGS=env['SQLITE_LINKFLAGS']) +if env['RUNTIME_LINK'] == 'static' and env['PLATFORM'] == 'Linux': + libraries.append('dl') + pgsql2sqlite = program_env.Program('pgsql2sqlite', source, LIBS=libraries) Depends(pgsql2sqlite, env.subst('../../src/%s' % env['MAPNIK_LIB_NAME']))