when statically linking, proj linking is needed for libgdal

This commit is contained in:
Dane Springmeyer 2011-10-29 22:33:49 -07:00
parent 990b452e8c
commit 820e1865dc
2 changed files with 2 additions and 0 deletions

View file

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

View file

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