summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2015-01-01 13:23:57 +0100
committerSébastien Helleu <flashcode@flashtux.org>2015-01-01 13:23:57 +0100
commit00ba2e8c4d07f9b580723df7c5823f0e413dc5f2 (patch)
tree6e95b581fb46f18f7f6377d26096e58dc02038ab /src
parenta020c28ea6e8d035907cf873959f1e1f95051b8b (diff)
downloadweechat-00ba2e8c4d07f9b580723df7c5823f0e413dc5f2.zip
core: fix compilation of plugins with cmake >= 3.1 (closes #287)
The flag -fPIC is now forced for compilation of plugins. It should fix compilation problems when cmake doesn't add this flag.
Diffstat (limited to 'src')
-rw-r--r--src/plugins/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt
index 95c457b05..58193e327 100644
--- a/src/plugins/CMakeLists.txt
+++ b/src/plugins/CMakeLists.txt
@@ -32,7 +32,7 @@ plugin-script-callback.c plugin-script-callback.h)
include_directories(${CMAKE_BINARY_DIR})
add_library(weechat_plugins STATIC ${LIB_PLUGINS_SRC})
-add_definitions(${CMAKE_SHARED_LIBRARY_C_FLAGS})
+add_definitions(${CMAKE_SHARED_LIBRARY_C_FLAGS} -fPIC)
add_library(weechat_plugins_scripts STATIC ${LIB_PLUGINS_SCRIPTS_SRC})
include(CheckIncludeFiles)