Use absolute path to exportsfile in gold plugin CMake build.

(Ninja generator requirement.)

llvm-svn: 143783
This commit is contained in:
Peter Collingbourne 2011-11-05 04:17:20 +00:00
parent ba1bf9cd90
commit 470083dc27

View 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()