Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37694387
en ru br
ALT Linux repos
S:2.4.0-alt1.1

Group :: System/Libraries
RPM: libtalloc

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: talloc-alt-fix-python-ldflags.patch
Download


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
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin