[libc++] Workaround old versions of CMake that don't understand list(JOIN)

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@374120 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/cmake/Modules/DefineLinkerScript.cmake b/cmake/Modules/DefineLinkerScript.cmake
index 2b456a4..213ab5d 100644
--- a/cmake/Modules/DefineLinkerScript.cmake
+++ b/cmake/Modules/DefineLinkerScript.cmake
@@ -38,7 +38,7 @@
       endif()
     endforeach()
   endif()
-  list(JOIN link_libraries " " link_libraries)
+  string(REPLACE ";" " " link_libraries "${link_libraries}")
 
   set(linker_script "INPUT(${soname} ${link_libraries})")
   add_custom_command(TARGET "${target}" POST_BUILD