summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2015-11-24 09:46:01 +0000
committerPavel Labath <labath@google.com>2015-11-24 09:46:01 +0000
commit1b6b889f9c847b0c7ab3fd8f37a6cf7479d87bda (patch)
tree4d087c3d8014cc5694b7bc4e707a3b1fb8420234 /cmake
parentfc33b8bb31225185b2d4079884cf8af7b5447935 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253968 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rwxr-xr-xcmake/config-ix.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
index 4b342bc586b..f699211bd5b 100755
--- a/cmake/config-ix.cmake
+++ b/cmake/config-ix.cmake
@@ -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()