SCons: Proper solution for local symbols map

Configuration used to override the link flags, it better restore them
once the configuration is done.
This commit is contained in:
Sergey Sharybin
2014-11-20 15:27:10 +01:00
parent 391096252b
commit e05be6bdbd
3 changed files with 4 additions and 0 deletions

View File

@@ -860,9 +860,11 @@ if B.targets != ['cudakernels']:
from FindUnorderedMap import FindUnorderedMap
conf = Configure(env)
old_linkflags = conf.env['LINKFLAGS']
conf.env.Append(LINKFLAGS=env['PLATFORM_LINKFLAGS'])
FindSharedPtr(conf)
FindUnorderedMap(conf)
conf.env['LINKFLAGS'] = old_linkflags
env = conf.Finish()
# End of auto configuration