scons: when linking statically on linux always link -ldl
This commit is contained in:
parent
e641c78a59
commit
844baa8c5b
2 changed files with 2 additions and 3 deletions
|
@ -42,9 +42,6 @@ if env['HAS_CAIRO']:
|
|||
|
||||
libraries = ['mapnik']
|
||||
libraries.extend(copy(env['LIBMAPNIK_LIBS']))
|
||||
if env['RUNTIME_LINK'] == 'static' and env['PLATFORM'] == 'Linux':
|
||||
libraries.append('dl')
|
||||
|
||||
rundemo = demo_env.Program('rundemo', source, LIBS=libraries, LINKFLAGS=env["CUSTOM_LDFLAGS"])
|
||||
|
||||
Depends(rundemo, env.subst('../../src/%s' % env['MAPNIK_LIB_NAME']))
|
||||
|
|
|
@ -95,6 +95,8 @@ if '-DBOOST_REGEX_HAS_ICU' in env['CPPDEFINES']:
|
|||
if env['RUNTIME_LINK'] == 'static':
|
||||
if 'icuuc' in env['ICU_LIB_NAME']:
|
||||
lib_env['LIBS'].append('icudata')
|
||||
if env['PLATFORM'] == 'Linux':
|
||||
lib_env['LIBS'].append('dl')
|
||||
else:
|
||||
lib_env['LIBS'].insert(0, 'agg')
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue