extract python link flags into uselib variables
authorThomas Nagy <tnagy2pow10@gmail.com>
Sun, 27 Oct 2013 13:59:01 +0000 (14:59 +0100)
committerThomas Nagy <tnagy2pow10@gmail.com>
Sun, 27 Oct 2013 13:59:01 +0000 (14:59 +0100)
wafadmin/Tools/python.py

index c2af312..b6fb7f1 100644 (file)
@@ -10,6 +10,7 @@ import TaskGen, Utils, Options
 from Logs import debug, warn, info
 from TaskGen import extension, before, after, feature
 from Configure import conf
+from config_c import parse_flags
 
 EXT_PY = ['.py']
 FRAG_2 = '''
@@ -213,7 +214,7 @@ MACOSX_DEPLOYMENT_TARGET = %r
                                env.append_value('LINKFLAGS_PYEMBED', lib)
 
        if Options.platform != 'darwin' and python_LDFLAGS:
-               env.append_value('LINKFLAGS_PYEMBED', python_LDFLAGS.split())
+               parse_flags(python_LDFLAGS, 'PYEMBED', env)
 
        result = False
        name = 'python' + env['PYTHON_VERSION']