Skip to content

Commit 0dbe61b

Browse files
committed
---
yaml --- r: 5720 b: refs/heads/master c: 831d861 h: refs/heads/master v: v3
1 parent 8ee6215 commit 0dbe61b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 5cd6dbd5b9e53e374e6abf1ee433ca5b16360cf3
2+
refs/heads/master: 831d861d8440ac7613dca6175485fc70941d1866

trunk/src/comp/back/rpath.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ fn get_rpath_relative_to_output(os: session::os,
105105
// Mac doesn't appear to support $ORIGIN
106106
let prefix = alt os {
107107
session::os_linux. { "$ORIGIN" + fs::path_sep() }
108-
session::os_macos. { "" }
108+
session::os_macos. { "@executable_path" + fs::path_sep() }
109109
};
110110

111111
prefix + get_relative_to(
@@ -322,7 +322,7 @@ mod test {
322322
fn test_rpath_relative() {
323323
let res = get_rpath_relative_to_output(session::os_macos,
324324
"/usr", "bin/rustc", "lib/libstd.so");
325-
assert res == "../lib";
325+
assert res == "@executable_path/../lib";
326326
}
327327

328328
#[test]

0 commit comments

Comments
 (0)