Skip to content

Commit fc7d590

Browse files
authored
build: on FreeBSD, set the rpath of built stdlib dylibs to $ORIGIN (#62334)
1 parent b0d3234 commit fc7d590

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stdlib/cmake/modules/AddSwiftStdlib.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,6 +1202,10 @@ function(add_swift_target_library_single target name)
12021202
set_target_properties("${target}"
12031203
PROPERTIES
12041204
INSTALL_RPATH "$ORIGIN")
1205+
elseif("${SWIFTLIB_SINGLE_SDK}" STREQUAL "FREEBSD")
1206+
set_target_properties("${target}"
1207+
PROPERTIES
1208+
INSTALL_RPATH "$ORIGIN")
12051209
endif()
12061210

12071211
set_target_properties("${target}" PROPERTIES BUILD_WITH_INSTALL_RPATH YES)

0 commit comments

Comments
 (0)