Skip to content

Commit 05c1342

Browse files
committed
Use the unversioned subdirectory in the rpath.
While we use versioned subdirectory triples for Swift module paths, this part of the rpath should be unversioned, if at the very least, for consistency. While we are here, ensure that -z origin is used when linking, which is necessary for ORIGIN processing.
1 parent e4a9efa commit 05c1342

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Utilities/build-script-helper.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,12 @@ 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+
# Library rpath for swift, dispatch, Foundation, etc. when installing
115+
swiftpm_args += [
116+
'-Xlinker', '-rpath', '-Xlinker', '$ORIGIN/../lib/swift/openbsd',
117+
'-Xlinker', '-z', '-Xlinker', 'origin',
118+
]
113119
else:
114120
# Library rpath for swift, dispatch, Foundation, etc. when installing
115121
swiftpm_args += [

0 commit comments

Comments
 (0)