mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
bpo-36508: python-config don't export LINKFORSHARED (GH-12661)
python-config --ldflags no longer includes flags of the LINKFORSHARED variable. The LINKFORSHARED variable must only be used to build executables.
This commit is contained in:
parent
2ee077f795
commit
e65f01f78d
4 changed files with 6 additions and 8 deletions
|
|
@ -44,7 +44,6 @@ ABIFLAGS="@ABIFLAGS@"
|
|||
LIBS="-lpython${VERSION}${ABIFLAGS} @LIBS@ $SYSLIBS"
|
||||
BASECFLAGS="@BASECFLAGS@"
|
||||
LDLIBRARY="@LDLIBRARY@"
|
||||
LINKFORSHARED="@LINKFORSHARED@"
|
||||
OPT="@OPT@"
|
||||
PY_ENABLE_SHARED="@PY_ENABLE_SHARED@"
|
||||
LDVERSION="@LDVERSION@"
|
||||
|
|
@ -89,15 +88,11 @@ do
|
|||
echo "$LIBS"
|
||||
;;
|
||||
--ldflags)
|
||||
LINKFORSHAREDUSED=
|
||||
if [ -z "$PYTHONFRAMEWORK" ] ; then
|
||||
LINKFORSHAREDUSED=$LINKFORSHARED
|
||||
fi
|
||||
LIBPLUSED=
|
||||
if [ "$PY_ENABLE_SHARED" = "0" ] ; then
|
||||
LIBPLUSED="-L$LIBPL"
|
||||
fi
|
||||
echo "$LIBPLUSED -L$libdir $LIBS $LINKFORSHAREDUSED"
|
||||
echo "$LIBPLUSED -L$libdir $LIBS"
|
||||
;;
|
||||
--extension-suffix)
|
||||
echo "$SO"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue