Kaydet (Commit) 7cce0819 authored tarafından Robert Nagy's avatar Robert Nagy

add $python_libs to PYTHON_LIBS in case pkg-config is being used

üst 72252bca
...@@ -6285,7 +6285,7 @@ if test $enable_python = system; then ...@@ -6285,7 +6285,7 @@ if test $enable_python = system; then
python_libdir=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBDIR'));"` python_libdir=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBDIR'));"`
if $PKG_CONFIG --exists python-$python_version; then if $PKG_CONFIG --exists python-$python_version; then
PYTHON_CFLAGS="`$PKG_CONFIG --cflags python-$python_version`" PYTHON_CFLAGS="`$PKG_CONFIG --cflags python-$python_version`"
PYTHON_LIBS="`$PKG_CONFIG --libs python-$python_version`" PYTHON_LIBS="`$PKG_CONFIG --libs python-$python_version` $python_libs"
else else
PYTHON_CFLAGS="-I$python_include" PYTHON_CFLAGS="-I$python_include"
PYTHON_LIBS="-L$python_libdir -lpython$python_version $python_libs" PYTHON_LIBS="-L$python_libdir -lpython$python_version $python_libs"
......
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