From 72dd5298e0a543aadb11e1dfcc294756ec6de831 Mon Sep 17 00:00:00 2001 From: "Ivan A. Melnikov" Date: Thu, 7 Jun 2018 13:51:21 +0400 Subject: [PATCH] buildtools: Respect additional LIBPATH from python LDFLAGS LDFLAGS variable, as comes from distutils.sysconfig.get_config_var, contains -L parameters on some systems. These flags are correctly parsed and put to LIBPATH_PYEMBED, but, before this change, they were overriden and thus ignored by the build system. This change addresses this problem and fixes the build on the systems where these flags are required. Signed-off-by: Ivan A. Melnikov --- third_party/waf/wafadmin/Tools/python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/waf/wafadmin/Tools/python.py b/third_party/waf/wafadmin/Tools/python.py index cd96b658185..65c710e4a73 100644 --- a/third_party/waf/wafadmin/Tools/python.py +++ b/third_party/waf/wafadmin/Tools/python.py @@ -253,7 +253,7 @@ def check_python_headers(conf, mandatory=True): result = conf.check(lib=name, uselib='PYEMBED', libpath=path) if result: - env['LIBPATH_PYEMBED'] = path + env.append_unique('LIBPATH_PYEMBED', path) env.append_value('LIB_PYEMBED', name) else: conf.log.write("\n\n### LIB NOT FOUND\n")