Skip to content

Commit 4b9e572

Browse files
committed
Remove an unnecessary linking flag. Add comments about linking
1 parent 062ba22 commit 4b9e572

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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)