llvm.org GIT mirror llvm / 4c8ba2e
Use right syntax to pass version script to Solaris' ld. Patch by Xan Lopez! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240275 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 4 years ago
1 changed file(s) with 7 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
8282 DEPENDS ${export_file}
8383 VERBATIM
8484 COMMENT "Creating export file for ${target_name}")
85 set_property(TARGET ${target_name} APPEND_STRING PROPERTY
86 LINK_FLAGS " -Wl,--version-script,${CMAKE_CURRENT_BINARY_DIR}/${native_export_file}")
85 if (${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
86 set_property(TARGET ${target_name} APPEND_STRING PROPERTY
87 LINK_FLAGS " -Wl,-M,${CMAKE_CURRENT_BINARY_DIR}/${native_export_file}")
88 else()
89 set_property(TARGET ${target_name} APPEND_STRING PROPERTY
90 LINK_FLAGS " -Wl,--version-script,${CMAKE_CURRENT_BINARY_DIR}/${native_export_file}")
91 endif()
8792 else()
8893 set(native_export_file "${target_name}.def")
8994