1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 22:36:38 +02:00

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.
This commit is contained in:
Sébastien Helleu
2015-01-01 13:23:57 +01:00
parent a020c28ea6
commit 00ba2e8c4d
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -59,6 +59,7 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
=== Bugs fixed
* core: fix compilation of plugins with cmake >= 3.1 (closes #287)
* core: fix display bug when scrolling in buffer on a filtered line
(closes #240)
* core: send mouse code only one time to terminal with command
+1 -1
View File
@@ -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)