summaryrefslogtreecommitdiffstats
path: root/Misc/python-config.sh.in
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-04-09 16:12:44 (GMT)
committerGitHub <noreply@github.com>2019-04-09 16:12:44 (GMT)
commite65f01f78d7bda3013fc5be485afa87ff56511d9 (patch)
tree01b62d53ee1489e18155a1fb183b4a488b8d09fc /Misc/python-config.sh.in
parent2ee077f7955e0349074f16a7afee40b4914619f7 (diff)
downloadcpython-e65f01f78d7bda3013fc5be485afa87ff56511d9.zip
cpython-e65f01f78d7bda3013fc5be485afa87ff56511d9.tar.gz
cpython-e65f01f78d7bda3013fc5be485afa87ff56511d9.tar.bz2
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.
Diffstat (limited to 'Misc/python-config.sh.in')
-rw-r--r--Misc/python-config.sh.in7
1 files changed, 1 insertions, 6 deletions
diff --git a/Misc/python-config.sh.in b/Misc/python-config.sh.in
index d1d3275..a3c479c 100644
--- a/Misc/python-config.sh.in
+++ b/Misc/python-config.sh.in
@@ -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"