From 448238001f5f1861477ba363da7aed0f0939e3c6 Mon Sep 17 00:00:00 2001 From: rezso Date: Tue, 7 Apr 2015 19:45:11 +0200 Subject: Add libutil to PYTHON_LIBS to prevent possible "undefined reference to `forkpty'" and "undefined reference to `openpty'" linker errors --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 415622b..95c20b4 100644 --- a/configure.ac +++ b/configure.ac @@ -396,7 +396,7 @@ fi if test "x$have_python" != "xno"; then PY_PREFIX=`$PYTHON -c 'import sys ; print sys.prefix'` PY_EXEC_PREFIX=`$PYTHON -c 'import sys ; print sys.exec_prefix'` - PYTHON_LIBS="-lpython$PYTHON_VERSION" + PYTHON_LIBS="-lpython$PYTHON_VERSION -lutil" PYTHON_LIB_LOC="-L$PY_EXEC_PREFIX/lib/python$PYTHON_VERSION/config" PYTHON_CFLAGS="-I$PY_PREFIX/include/python$PYTHON_VERSION" PYTHON_MAKEFILE="$libdir/python$PYTHON_VERSION/config/Makefile" -- cgit v1.2.1