mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-03-20 13:16:34 -04:00
Drop WITH_PIE option as it's broken.
It builds the autotype plugin as a PIE which doesn't work.
This commit is contained in:
parent
34f595cc78
commit
21f1eb2d14
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user