Группа :: Система/Библиотеки
Пакет: libtdb
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: tdb-alt-fix-python-ldflags.patch
Скачать
Скачать
From 72dd5298e0a543aadb11e1dfcc294756ec6de831 Mon Sep 17 00:00:00 2001
From: "Ivan A. Melnikov" <iv@altlinux.org>
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<path> 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 <iv@altlinux.org>
---
third_party/waf/wafadmin/Tools/python.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/third_party/waf/waflib/Tools/python.py b/third_party/waf/waflib/Tools/python.py
index 52a05c6..63e267e 100644
--- a/third_party/waf/waflib/Tools/python.py
+++ b/third_party/waf/waflib/Tools/python.py
@@ -406,7 +406,7 @@ def check_python_headers(conf, features='pyembed pyext'):
break # do not forget to set LIBPATH_PYEMBED
if result:
- env.LIBPATH_PYEMBED = path
+ env.append_unique('LIBPATH_PYEMBED', path)
env.append_value('LIB_PYEMBED', [name])
else:
conf.to_log("\n\n### LIB NOT FOUND\n")
--
2.10.5