From 21f1eb2d144daec2285853381be1ba951cef961e Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Tue, 23 Oct 2012 17:05:46 +0200 Subject: [PATCH] Drop WITH_PIE option as it's broken. It builds the autotype plugin as a PIE which doesn't work. --- CMakeLists.txt | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6f47f1329..55c92992a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,7 +26,6 @@ include(CheckCXXSourceCompiles) option(WITH_TESTS "Enable building of unit tests" ON) option(WITH_GUI_TESTS "Enable building of GUI tests" OFF) option(WITH_LTO "Enable Link Time Optimization (LTO)" OFF) -option(WITH_PIE "Build as Position-independent executable (PIE)" OFF) option(WITH_CXX11 "Build with the C++ 11 standard" OFF) set(KEEPASSX_VERSION "2.0 alpha 2") @@ -107,15 +106,6 @@ if(WITH_LTO) endif() endif() -if(WITH_PIE) - if((CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_CLANG) AND (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANGXX)) - add_gcc_compiler_flags("-fPIE") - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fPIE -pie") - else() - message(FATAL_ERROR "PIE is only supported with gcc and clang") - endif() -endif() - if (WITH_CXX11) add_gcc_compiler_cxxflags("-std=c++0x") add_gcc_compiler_cflags("-ansi")