Skip to content

Commit 46faeab

Browse files
authored
Merge pull request #1980 from 3405691582/rpath
Use the unversioned subdirectory in the rpath.
2 parents 09dadbf + 4eb3f2d commit 46faeab

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Utilities/build-script-helper.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ def get_swiftpm_options(args):
110110
swiftpm_args += [
111111
'-Xlinker', '-rpath', '-Xlinker', '$ORIGIN/../lib/swift/freebsd',
112112
]
113+
elif '-openbsd' in args.build_target:
114+
swiftpm_args += [
115+
'-Xlinker', '-rpath', '-Xlinker', '$ORIGIN/../lib/swift/openbsd',
116+
'-Xlinker', '-z', '-Xlinker', 'origin',
117+
]
113118
else:
114119
# Library rpath for swift, dispatch, Foundation, etc. when installing
115120
swiftpm_args += [

0 commit comments

Comments
 (0)