Add -no-pie flag to CMake

This commit is contained in:
Chris Burgener 2016-10-19 09:52:30 -04:00 committed by GitHub
parent 43169d897f
commit d03a35ac92
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ elseif(_ARCH_64 AND (
set(_M_X86 1)
set(_M_X86_64 1)
add_definitions(-D_M_X86=1 -D_M_X86_64=1 -msse2)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fno-pie")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fno-pie -no-pie")
elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "aarch64")
set(_M_ARM 1)
set(_M_ARM_64 1)