occi: defer symbol resolution till runtime for osx
This commit is contained in:
parent
8cf7172539
commit
801a92c99f
1 changed files with 10 additions and 0 deletions
|
@ -43,6 +43,16 @@ libraries.append(env['ICU_LIB_NAME'])
|
||||||
if env['PLUGIN_LINKING'] == 'shared':
|
if env['PLUGIN_LINKING'] == 'shared':
|
||||||
libraries.append(env['MAPNIK_NAME'])
|
libraries.append(env['MAPNIK_NAME'])
|
||||||
|
|
||||||
|
# libocci.dylib, at least for 11.2 links to libstdc++
|
||||||
|
# so we defer symbol resolution to runtime in order to
|
||||||
|
# dodge linking errors like
|
||||||
|
# Undefined symbols for architecture x86_64:
|
||||||
|
# "std::string::_Rep::_M_destroy(std::allocator<char> const&)", referenced from:
|
||||||
|
# RegisterClasses(oracle::occi::Environment*) in spatial_classesm.os
|
||||||
|
|
||||||
|
if env['PLATFORM'] == 'Darwin':
|
||||||
|
plugin_env.Append(LINKFLAGS='-undefined dynamic_lookup')
|
||||||
|
|
||||||
TARGET = plugin_env.SharedLibrary('../%s' % PLUGIN_NAME,
|
TARGET = plugin_env.SharedLibrary('../%s' % PLUGIN_NAME,
|
||||||
SHLIBPREFIX='',
|
SHLIBPREFIX='',
|
||||||
SHLIBSUFFIX='.input',
|
SHLIBSUFFIX='.input',
|
||||||
|
|
Loading…
Reference in a new issue