* Use no-pie for clang too.

This commit is contained in:
Stelios Tsampas 2018-01-29 19:14:06 +02:00
parent 692119c547
commit 48981388c5

View file

@ -27,7 +27,8 @@ add_definitions(-DENABLE_NLS -DGETTEXT_PACKAGE="pcsxr")
#WARNING! this is required for dynarec to work!
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fno-pie")
if(CMAKE_CXX_COMPILER_ID STREQUAL GNU)
list(APPEND COMPILER_IDS "GNU" "Clang")
if(CMAKE_C_COMPILER_ID IN_LIST COMPILER_IDS)
CHECK_C_COMPILER_FLAG("-no-pie" NO_PIE_UPSTREAM)
if(NO_PIE_UPSTREAM)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -no-pie")