From c00ae680194b2e184ae04d27751d9d3af768c645 Mon Sep 17 00:00:00 2001 From: Shane McCarron Date: Mon, 1 Feb 2016 12:46:16 -0600 Subject: [PATCH] Python plugin shared libraries missing When linking against a python with shared libraries, this script ONLY asked for the LD flags, not any additional libraries. This could result in a condition where required libraries (such as libutil on Centos 6.7 against Python 2.7) are not loaded and the load of the plugin thus fails. This change asks the python being linked against which libraries it was linked using, and then ensures those are also linked against by the python plugin for weechat. --- cmake/FindPython.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/FindPython.cmake b/cmake/FindPython.cmake index 4b8ad8c45..77d0fcb8d 100644 --- a/cmake/FindPython.cmake +++ b/cmake/FindPython.cmake @@ -57,7 +57,7 @@ if(PYTHON_EXECUTABLE) ) execute_process( - COMMAND ${PYTHON_EXECUTABLE} -c "import sys; from distutils.sysconfig import *; sys.stdout.write(get_config_var('LINKFORSHARED'))" + COMMAND ${PYTHON_EXECUTABLE} -c "import sys; from distutils.sysconfig import *; sys.stdout.write(get_config_var('LIBS') + ' ' + get_config_var('LINKFORSHARED'))" OUTPUT_VARIABLE PYTHON_LFLAGS )