aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-07-14 13:18:04 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-07-14 13:18:04 +0100
commit99a6e4a1e3065292214cc7f95d3b987932418b8d (patch)
treee5ac87604ddacb26643018036c43ce1a58290afa /CMakeLists.txt
parentfcea960519650da608d4c3ad1dec784f546eb930 (diff)
downloadrspamd-99a6e4a1e3065292214cc7f95d3b987932418b8d.tar.gz
rspamd-99a6e4a1e3065292214cc7f95d3b987932418b8d.zip
Revert "[Fix] PIE is required for static build"
This reverts commit fcea960519650da608d4c3ad1dec784f546eb930.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 0 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f37cfb4f8..5d126659d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -790,14 +790,6 @@ IF(SUPPORT_FPIC)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
ENDIF(SUPPORT_FPIC)
-CHECK_C_COMPILER_FLAG(-fPIE SUPPORT_FPIE)
-IF(ENABLE_STATIC MATCHES "ON")
- IF(SUPPORT_FPIE)
- SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIE")
- SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie")
- ENDIF()
-ENDIF()
-
# Optimization flags
IF(NOT CMAKE_C_OPT_FLAGS)
IF(ENABLE_OPTIMIZATION MATCHES "ON")