when statically linking, proj linking is needed for libgdal
This commit is contained in:
parent
990b452e8c
commit
820e1865dc
2 changed files with 2 additions and 0 deletions
|
@ -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'])
|
||||
|
||||
|
|
|
@ -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'])
|
||||
|
||||
|
|
Loading…
Reference in a new issue