mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
One more change for issue 9807, by Matthias Klose.
This adds $ABIFLAGS to the static library, since it should match the shared library name. Also, include the abiflags in python-config --libs.
This commit is contained in:
parent
eebccfb10c
commit
f040d7de94
4 changed files with 6 additions and 5 deletions
|
|
@ -1,4 +1,5 @@
|
|||
#!@EXENAME@
|
||||
# -*- python -*-
|
||||
|
||||
import getopt
|
||||
import os
|
||||
|
|
@ -45,7 +46,7 @@ for opt in opt_flags:
|
|||
|
||||
elif opt in ('--libs', '--ldflags'):
|
||||
libs = getvar('LIBS').split() + getvar('SYSLIBS').split()
|
||||
libs.append('-lpython'+pyver)
|
||||
libs.append('-lpython' + pyver + sys.abiflags)
|
||||
# add the prefix/lib/pythonX.Y/config dir, but only if there is no
|
||||
# shared library in prefix/lib/.
|
||||
if opt == '--ldflags':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue