Kaydet (Commit) 88e824ee authored tarafından Robert Nagy's avatar Robert Nagy

fix PYTHON_LIBS

on some platforms there are extra libs needed when linking with -lpython,
for example -pthread and -lutil on OpenBSD
üst 19aa902a
...@@ -4489,8 +4489,9 @@ elif test -n "$with_system_python" -o -n "$with_system_libs" && \ ...@@ -4489,8 +4489,9 @@ elif test -n "$with_system_python" -o -n "$with_system_libs" && \
python_include=`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('INCLUDEPY');"` python_include=`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('INCLUDEPY');"`
python_version=`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('VERSION');"` python_version=`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('VERSION');"`
python_libs=`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBS');"`
PYTHON_CFLAGS="-I$python_include" PYTHON_CFLAGS="-I$python_include"
PYTHON_LIBS="-lpython$python_version" PYTHON_LIBS="-lpython$python_version $python_libs"
fi fi
if test "$with_system_python" = "yes" ; then if test "$with_system_python" = "yes" ; then
SYSTEM_PYTHON=YES SYSTEM_PYTHON=YES
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment