--- weechat-1.0.1/src/plugins/CMakeLists.txt.pic	2014-09-28 15:59:19.000000000 +0900
+++ weechat-1.0.1/src/plugins/CMakeLists.txt	2015-01-17 04:29:38.934291736 +0900
@@ -39,6 +39,8 @@
 include(CheckFunctionExists)
 include(CheckLibraryExists)
 
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
+
 if(ENABLE_ALIAS)
   add_subdirectory(alias)
 endif()
