mirror of
https://github.com/python/cpython
synced 2024-09-05 08:17:45 +00:00
- Issue #18096: Fix library order returned by python-config.
This commit is contained in:
parent
1de0ba2cf5
commit
d486c43d8d
|
@ -38,6 +38,8 @@ Build
|
|||
- Issue #16537: Check whether self.extensions is empty in setup.py. Patch by
|
||||
Jonathan Hosmer.
|
||||
|
||||
- Issue #18096: Fix library order returned by python-config.
|
||||
|
||||
|
||||
What's New in Python 3.4.2?
|
||||
===========================
|
||||
|
|
|
@ -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':
|
||||
|
|
|
@ -40,7 +40,7 @@ LIBM="@LIBM@"
|
|||
LIBC="@LIBC@"
|
||||
SYSLIBS="$LIBM $LIBC"
|
||||
ABIFLAGS="@ABIFLAGS@"
|
||||
LIBS="@LIBS@ $SYSLIBS -lpython${VERSION}${ABIFLAGS}"
|
||||
LIBS="-lpython${VERSION}${ABIFLAGS} @LIBS@ $SYSLIBS"
|
||||
BASECFLAGS="@BASECFLAGS@"
|
||||
LDLIBRARY="@LDLIBRARY@"
|
||||
LINKFORSHARED="@LINKFORSHARED@"
|
||||
|
|
Loading…
Reference in a new issue