- Issue #18096: Fix library order returned by python-config.

This commit is contained in:
doko@ubuntu.com 2014-10-02 02:00:14 +02:00
parent 1de0ba2cf5
commit d486c43d8d
3 changed files with 6 additions and 3 deletions

View file

@ -47,8 +47,9 @@ for opt in opt_flags:
print(' '.join(flags))
elif opt in ('--libs', '--ldflags'):
libs = getvar('LIBS').split() + getvar('SYSLIBS').split()
libs.append('-lpython' + pyver + sys.abiflags)
libs = ['-lpython' + pyver + sys.abiflags]
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':