Skip to content

Commit 7a5d358

Browse files
committed
---
yaml --- r: 5713 b: refs/heads/master c: 4b9e572 h: refs/heads/master i: 5711: 9fb5a03 v: v3
1 parent 633cd9b commit 7a5d358

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
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: 062ba22d997918f9903127d2158449a8d49134d9
2+
refs/heads/master: 4b9e57204463fbf6fa6c96763f16319425e3f6d1

trunk/src/comp/back/link.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,10 @@ fn link_binary(sess: session::session,
509509
option::none. { sess.fatal("can't find main.o") }
510510
};
511511

512+
// The default library location, we need this to find the runtime.
513+
// The location of crates will be determined as needed.
512514
let stage: str = "-L" + sess.filesearch().get_target_lib_path();
515+
513516
let prog: str = "gcc";
514517
// The invocations of gcc share some flags across platforms
515518

@@ -579,7 +582,7 @@ fn link_binary(sess: session::session,
579582
gcc_args += ["-lm", main];
580583
}
581584

582-
gcc_args += ["-Lrt", "-lrustrt"];
585+
gcc_args += ["-lrustrt"];
583586

584587
gcc_args += rpath::get_rpath_flags(sess, saved_out_filename);
585588

0 commit comments

Comments
 (0)