mirror of
https://github.com/iCatButler/pcsxr.git
synced 2024-05-10 08:33:48 -04:00
* Use no-pie for clang too.
This commit is contained in:
parent
692119c547
commit
48981388c5
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue