1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

Fix non-PIC build after 253959

CMAKE_EXE_LINKER_FLAGS is a string. Appending a flag using list(APPEND) introduces an extra
semicolon which breaks stuff. Change this to append the value in the same way that everyone else
seems to be doing.

llvm-svn: 253968
This commit is contained in:
Pavel Labath 2015-11-24 09:46:01 +00:00
parent 5747eb82f8
commit f570e610a0

View File

@ -301,7 +301,7 @@ else()
set(ENABLE_PIC 0) set(ENABLE_PIC 0)
check_cxx_compiler_flag("-fno-pie" SUPPORTS_NO_PIE_FLAG) check_cxx_compiler_flag("-fno-pie" SUPPORTS_NO_PIE_FLAG)
if(SUPPORTS_NO_PIE_FLAG) if(SUPPORTS_NO_PIE_FLAG)
list(APPEND CMAKE_EXE_LINKER_FLAGS "-fno-pie") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fno-pie")
endif() endif()
endif() endif()