scons: cross compilation fixes
This commit is contained in:
parent
e69bedadff
commit
d5e3dba3df
2 changed files with 7 additions and 6 deletions
11
SConstruct
11
SConstruct
|
@ -1283,10 +1283,11 @@ if not preconfigured:
|
|||
else:
|
||||
env['MISSING_DEPS'].append('libxml2')
|
||||
|
||||
if conf.CheckHasDlfcn():
|
||||
env.Append(CPPDEFINES = '-DMAPNIK_HAS_DLCFN')
|
||||
else:
|
||||
env['SKIPPED_DEPS'].extend(['dlfcn'])
|
||||
if not env['HOST']:
|
||||
if conf.CheckHasDlfcn():
|
||||
env.Append(CPPDEFINES = '-DMAPNIK_HAS_DLCFN')
|
||||
else:
|
||||
env['SKIPPED_DEPS'].extend(['dlfcn'])
|
||||
|
||||
OPTIONAL_LIBSHEADERS = []
|
||||
|
||||
|
@ -1340,7 +1341,7 @@ if not preconfigured:
|
|||
conf.prioritize_paths(silent=True)
|
||||
|
||||
# test for C++11 support, which is required
|
||||
if not conf.supports_cxx11():
|
||||
if not env['HOST'] and not conf.supports_cxx11():
|
||||
color_print(1,"C++ compiler does not support C++11 standard (-std=c++11), which is required. Please upgrade your compiler to at least g++ 4.7 (ideally 4.8)")
|
||||
Exit(1)
|
||||
|
||||
|
|
|
@ -251,7 +251,7 @@ if env['PLUGIN_LINKING'] == 'static':
|
|||
lib_env.AppendUnique(CPPPATH='../plugins/')
|
||||
for plugin in env['REQUESTED_PLUGINS']:
|
||||
details = env['PLUGINS'][plugin]
|
||||
if details['lib'] in env['LIBS'] or not details['lib']:
|
||||
if not details['lib'] or details['lib'] in env['LIBS']:
|
||||
plugin_env = SConscript('../plugins/input/%s/build.py' % plugin)
|
||||
if not plugin_env:
|
||||
print("Notice: no 'plugin_env' variable found for plugin: '%s'" % plugin)
|
||||
|
|
Loading…
Reference in a new issue