add python lib path to --with-python

This commit is contained in:
Scott Fennell 2020-03-18 19:00:14 -05:00
parent 3aa32b673e
commit 55f6cc0b5c
2 changed files with 4 additions and 4 deletions

View File

@ -395,7 +395,7 @@ AC_ARG_WITH(
[]
)
PYTHON_CPPFLAGS=`${PYTHON_CONFIG} --includes`
PYTHON_LIBS=`${PYTHON_CONFIG} --libs`
PYTHON_LIBS=`${PYTHON_CONFIG} --ldflags`
],
[
AC_PATH_PROG(PYTHON, python${PYTHON_VERSION}, nopython)
@ -406,7 +406,7 @@ AC_ARG_WITH(
AC_MSG_ERROR([could not find python or python3]),
[
PYTHON_CPPFLAGS=`${PYTHON3}-config --includes`
PYTHON_LIBS=`${PYTHON3}-config --libs`
PYTHON_LIBS=`${PYTHON3}-config --ldflags`
PYTHON=$PYTHON3
]
)

4
configure vendored
View File

@ -5552,7 +5552,7 @@ fi
fi
PYTHON_CPPFLAGS=`${PYTHON_CONFIG} --includes`
PYTHON_LIBS=`${PYTHON_CONFIG} --libs`
PYTHON_LIBS=`${PYTHON_CONFIG} --ldflags`
else
@ -5645,7 +5645,7 @@ fi
else
PYTHON_CPPFLAGS=`${PYTHON3}-config --includes`
PYTHON_LIBS=`${PYTHON3}-config --libs`
PYTHON_LIBS=`${PYTHON3}-config --ldflags`
PYTHON=$PYTHON3