>From e5d01ae5690d52b83dbdb621bf4e4077fc65abf4 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Sat, 31 Aug 2013 05:16:58 +0200 Subject: [PATCH 3/9] AUTOTOOLS: Add -LLIBDIR to PYTHON_LIBS Detect directory with python libraries and add this directory to the list of directories to be searched for linker. --- src/external/python.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/external/python.m4 b/src/external/python.m4 index 00487a746a44a945e7bcd92a8f1f2ddd2b4eba80..5f48bc92618b2fbc23610f67f86e38f659977c5a 100644 --- a/src/external/python.m4 +++ b/src/external/python.m4 @@ -19,7 +19,8 @@ dnl versions of python PYTHON_LIBS="`$PYTHON -c \"from distutils import sysconfig; \ print \\\" \\\".join(sysconfig.get_config_var('LIBS').split() + \ sysconfig.get_config_var('SYSLIBS').split()) + \ - ' -lpython' + sysconfig.get_config_var('VERSION')\"`" + ' -lpython' + sysconfig.get_config_var('VERSION') + \ + ' -L' + sysconfig.get_config_var('LIBDIR')\"`" AC_MSG_RESULT([yes]) else AC_MSG_ERROR([no. Please install python devel package]) -- 1.8.3.1