From 1632018a143f652afa900d154b1c2a4763f2d378 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Wed, 19 Apr 2017 18:10:03 -0700 Subject: [PATCH] pgsql2sqlite:also link -ldl on linux --- utils/pgsql2sqlite/build.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/pgsql2sqlite/build.py b/utils/pgsql2sqlite/build.py index 3dac9003a..55c7f3fd2 100644 --- a/utils/pgsql2sqlite/build.py +++ b/utils/pgsql2sqlite/build.py @@ -54,6 +54,9 @@ 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')