diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-21 13:17:34 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-21 13:17:34 +0100 |
commit | a28e2fa0523a0db5d86bb7f9a729b6e3588271a9 (patch) | |
tree | 02418df7ebbc91bfc8812a84bfde4de090c0df49 /CMakeLists.txt | |
parent | ccc7ba9b428b20b1599346646e68a68c5bb2dc47 (diff) | |
download | rspamd-a28e2fa0523a0db5d86bb7f9a729b6e3588271a9.tar.gz rspamd-a28e2fa0523a0db5d86bb7f9a729b6e3588271a9.zip |
Additional issues with static build.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 29d309080..aa66b075a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -123,6 +123,13 @@ IF(ENABLE_STATIC MATCHES "ON") SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static") SET(LINK_TYPE "STATIC") SET(NO_SHARED "ON") + # Dirty hack for cmake + SET(CMAKE_EXE_LINK_DYNAMIC_C_FLAGS) # remove -Wl,-Bdynamic + SET(CMAKE_EXE_LINK_DYNAMIC_CXX_FLAGS) + SET(CMAKE_SHARED_LIBRARY_C_FLAGS) # remove -fPIC + SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS) + SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS) # remove -rdynamic + SET(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS) ELSE(ENABLE_STATIC MATCHES "ON") IF (NO_SHARED MATCHES "OFF") SET(LINK_TYPE "SHARED") |