Use absolute path to exportsfile in gold plugin CMake build.
authorPeter Collingbourne <peter@pcc.me.uk>
Sat, 5 Nov 2011 04:17:20 +0000 (04:17 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Sat, 5 Nov 2011 04:17:20 +0000 (04:17 +0000)
(Ninja generator requirement.)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143783 91177308-0d34-0410-b5e6-96231b3b80d8

tools/gold/CMakeLists.txt

index eb4b6e6..2cc132f 100644 (file)
@@ -40,6 +40,7 @@ else()
   set_property(SOURCE gold-plugin.cpp APPEND PROPERTY
     OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/exportsfile)
 
-  target_link_libraries(LLVMgold LTO -Wl,--version-script,exportsfile)
+  target_link_libraries(LLVMgold LTO
+                   -Wl,--version-script,${CMAKE_CURRENT_BINARY_DIR}/exportsfile)
   add_dependencies(LLVMgold gold_exports)
 endif()