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')