We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af2ecd8 commit 0d6b928Copy full SHA for 0d6b928
Sources/Foundation/CMakeLists.txt
@@ -168,6 +168,10 @@ set_target_properties(Foundation PROPERTIES
168
INSTALL_RPATH "$ORIGIN"
169
INSTALL_REMOVE_ENVIRONMENT_RPATH ON)
170
171
+if(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
172
+ target_link_options(Foundation PRIVATE "LINKER:-z,origin")
173
+endif()
174
+
175
if(dispatch_FOUND)
176
set_target_properties(Foundation PROPERTIES
177
BUILD_RPATH "$<TARGET_FILE_DIR:swiftDispatch>")
0 commit comments