Skip to content
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.

Commit

Permalink
Fix non-PIC build after 253959
Browse files Browse the repository at this point in the history
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253968 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
labath committed Nov 24, 2015
1 parent 40eb2c5 commit 1e43c15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/config-ix.cmake
Expand Up @@ -301,7 +301,7 @@ else()
set(ENABLE_PIC 0)
check_cxx_compiler_flag("-fno-pie" 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()

Expand Down

0 comments on commit 1e43c15

Please sign in to comment.