Skip to content

Commit 4566578

Browse files
crabtwbrson
authored andcommitted
link with gcc44+
1 parent 274fc1b commit 4566578

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/comp/back/link.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,9 @@ fn link_binary(sess: session::session,
663663
gcc_args += ["-lrt", "-L/usr/local/lib", "-lexecinfo",
664664
"-L/usr/local/lib/gcc46",
665665
"-L/usr/local/lib/gcc44", "-lstdc++",
666-
"-Wl,-z,origin"];
666+
"-Wl,-z,origin",
667+
"-Wl,-rpath,/usr/local/lib/gcc46",
668+
"-Wl,-rpath,/usr/local/lib/gcc44"];
667669
}
668670

669671
// OS X 10.6 introduced 'compact unwind info', which is produced by the

0 commit comments

Comments
 (0)