Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37547776
en ru br
ALT Linux repos
S:2.7.18-alt11
5.0: 2.5.4-alt5
4.1: 2.5.4-alt0.M41.1
4.0: 2.4.5-alt0.M40.1
3.0: 2.4.1-alt5

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


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