From 820e1865dc32f75a612449e9bbc445fb27a0b4c1 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Sat, 29 Oct 2011 22:33:49 -0700 Subject: [PATCH] when statically linking, proj linking is needed for libgdal --- plugins/input/gdal/build.py | 1 + plugins/input/ogr/build.py | 1 + 2 files changed, 2 insertions(+) diff --git a/plugins/input/gdal/build.py b/plugins/input/gdal/build.py index 2f81d98b1..491c26d55 100644 --- a/plugins/input/gdal/build.py +++ b/plugins/input/gdal/build.py @@ -42,6 +42,7 @@ plugin_env['LIBS'].append(env['ICU_LIB_NAME']) if env['RUNTIME_LINK'] == 'static': cmd = 'gdal-config --dep-libs' plugin_env.ParseConfig(cmd) + plugin_env['LIBS'].append('proj') input_plugin = plugin_env.SharedLibrary('../gdal', source=gdal_src, SHLIBPREFIX='', SHLIBSUFFIX='.input', LINKFLAGS=env['CUSTOM_LDFLAGS']) diff --git a/plugins/input/ogr/build.py b/plugins/input/ogr/build.py index f07b8701e..4b3225737 100644 --- a/plugins/input/ogr/build.py +++ b/plugins/input/ogr/build.py @@ -46,6 +46,7 @@ plugin_env['LIBS'].append('boost_filesystem%s' % env['BOOST_APPEND']) if env['RUNTIME_LINK'] == 'static': cmd = 'gdal-config --dep-libs' plugin_env.ParseConfig(cmd) + plugin_env['LIBS'].append('proj') input_plugin = plugin_env.SharedLibrary('../ogr', source=ogr_src, SHLIBPREFIX='', SHLIBSUFFIX='.input', LINKFLAGS=env['CUSTOM_LDFLAGS'])