Skip to content

Commit 8a1d1f2

Browse files
authored
Merge pull request #81226 from 3405691582/origin_62
[6.2][cherrypick] Unconditionally add -z,origin on OpenBSD.
2 parents 23e21ff + 44df123 commit 8a1d1f2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmake/modules/SwiftConfigureSDK.cmake

+2
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,8 @@ macro(configure_sdk_unix name architectures)
439439

440440
set(SWIFT_SDK_OPENBSD_ARCH_${arch}_TRIPLE "${arch}-unknown-openbsd${openbsd_system_version}")
441441

442+
add_link_options("LINKER:-z,origin")
443+
442444
if(CMAKE_SYSROOT)
443445
set(SWIFT_SDK_OPENBSD_ARCH_${arch}_PATH "${CMAKE_SYSROOT}${SWIFT_SDK_OPENBSD_ARCH_${arch}_PATH}" CACHE INTERNAL "sysroot path" FORCE)
444446
endif()

0 commit comments

Comments
 (0)