changeset: 92729:6316475af62d branch: 2.7 parent: 92726:c4284fa75ec7 user: doko@ubuntu.com date: Thu Oct 02 01:58:58 2014 +0200 files: Misc/NEWS Misc/python-config.in description: - Issue #18096: Fix library order returned by python-config. diff -r c4284fa75ec7 -r 6316475af62d Misc/NEWS --- a/Misc/NEWS Thu Oct 02 00:09:17 2014 +0300 +++ b/Misc/NEWS Thu Oct 02 01:58:58 2014 +0200 @@ -242,6 +242,8 @@ - Issue #21166: Prevent possible segfaults and other random failures of python --generate-posix-vars in pybuilddir.txt build target. +- Issue #18096: Fix library order returned by python-config. + Windows ------- diff -r c4284fa75ec7 -r 6316475af62d Misc/python-config.in --- a/Misc/python-config.in Thu Oct 02 00:09:17 2014 +0300 +++ b/Misc/python-config.in Thu Oct 02 01:58:58 2014 +0200 @@ -44,8 +44,9 @@ print ' '.join(flags) elif opt in ('--libs', '--ldflags'): - libs = getvar('LIBS').split() + getvar('SYSLIBS').split() - libs.append('-lpython'+pyver) + libs = ['-lpython' + pyver] + 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':