From 128d3edadcfe785da0dad7520db515570804e441 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Sat, 25 Jan 2014 19:00:25 +0100 Subject: [PATCH] Fix py3k linking issue on Linux We now try the ${PYTHON_PREFIX}/lib directory first as it is more likely to have the shared library also, and not just the static one. --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 73867c6..29abce6 100644 --- a/configure.ac +++ b/configure.ac @@ -29,12 +29,12 @@ PYTHON_LDFLAGS="" PYTHON_LIBS="" AC_DEFUN([ADD_PYTHON_INCDIR], [ if [[ -d "$1" ]]; then - PYTHON_CFLAGS="-I\"$1\" $PYTHON_CFLAGS" + PYTHON_CFLAGS="$PYTHON_CFLAGS -I\"$1\"" fi ]) AC_DEFUN([ADD_PYTHON_LIBDIR], [ if [[ -d "$1" ]]; then - PYTHON_LIBS="-L\"$1\" $PYTHON_LIBS" + PYTHON_LIBS="$PYTHON_LIBS -L\"$1\"" fi ]) ADD_PYTHON_INCDIR([${PYTHON_PREFIX}/include/python${PYTHON_VERSION}${PYTHON_ABIFLAGS}/])