ALT Linux repos
Group :: Development/Python
RPM: python
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: python-2.7.10-python-config-ldflags-alt.patch
Download
Download
diff --git a/Python/Misc/python-config.in b/Python/Misc/python-config.in
index 9ee0fdf..0ab41e1 100644
--- a/Python/Misc/python-config.in
+++ b/Python/Misc/python-config.in
@@ -44,15 +44,16 @@ for opt in opt_flags:
print ' '.join(flags)
elif opt in ('--libs', '--ldflags'):
- libs = ['-lpython' + pyver]
+ libs = []
libs += getvar('LIBS').split()
libs += getvar('SYSLIBS').split()
# add the prefix/lib/pythonX.Y/config dir, but only if there is no
# shared library in prefix/lib/.
if opt == '--ldflags':
- if not getvar('Py_ENABLE_SHARED'):
- libs.insert(0, '-L' + getvar('LIBPL'))
+ #if not getvar('Py_ENABLE_SHARED'):
+ # libs.insert(0, '-L' + getvar('LIBPL'))
if not getvar('PYTHONFRAMEWORK'):
libs.extend(getvar('LINKFORSHARED').split())
+ else:
+ libs += ['-lpython' + pyver]
print ' '.join(libs)
-