summaryrefslogtreecommitdiffstats
path: root/Misc/python-config.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'Misc/python-config.sh.in')
-rw-r--r--Misc/python-config.sh.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/Misc/python-config.sh.in b/Misc/python-config.sh.in
index 33991ef..59101d5 100644
--- a/Misc/python-config.sh.in
+++ b/Misc/python-config.sh.in
@@ -42,6 +42,7 @@ LIBC="@LIBC@"
SYSLIBS="$LIBM $LIBC"
ABIFLAGS="@ABIFLAGS@"
LIBS="@LIBPYTHON@ @LIBS@ $SYSLIBS"
+LIBS_EMBED="-lpython${VERSION}${ABIFLAGS} @LIBS@ $SYSLIBS"
BASECFLAGS="@BASECFLAGS@"
LDLIBRARY="@LDLIBRARY@"
OPT="@OPT@"
@@ -53,6 +54,7 @@ SO="@EXT_SUFFIX@"
PYTHONFRAMEWORK="@PYTHONFRAMEWORK@"
INCDIR="-I$includedir/python${VERSION}${ABIFLAGS}"
PLATINCDIR="-I$includedir/python${VERSION}${ABIFLAGS}"
+PY_EMBED=0
# Scan for --help or unknown argument.
for ARG in $*
@@ -61,6 +63,9 @@ do
--help)
exit_with_usage 0
;;
+ --embed)
+ PY_EMBED=1
+ ;;
--prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--extension-suffix|--abiflags|--configdir)
;;
*)
@@ -69,6 +74,10 @@ do
esac
done
+if [ $PY_EMBED = 1 ] ; then
+ LIBS="$LIBS_EMBED"
+fi
+
for ARG in "$@"
do
case "$ARG" in