Remove an unnecessary linking flag. Add comments about linking
This commit is contained in:
parent
062ba22d99
commit
4b9e572044
1 changed files with 4 additions and 1 deletions
|
@ -509,7 +509,10 @@ fn link_binary(sess: session::session,
|
|||
option::none. { sess.fatal("can't find main.o") }
|
||||
};
|
||||
|
||||
// The default library location, we need this to find the runtime.
|
||||
// The location of crates will be determined as needed.
|
||||
let stage: str = "-L" + sess.filesearch().get_target_lib_path();
|
||||
|
||||
let prog: str = "gcc";
|
||||
// The invocations of gcc share some flags across platforms
|
||||
|
||||
|
@ -579,7 +582,7 @@ fn link_binary(sess: session::session,
|
|||
gcc_args += ["-lm", main];
|
||||
}
|
||||
|
||||
gcc_args += ["-Lrt", "-lrustrt"];
|
||||
gcc_args += ["-lrustrt"];
|
||||
|
||||
gcc_args += rpath::get_rpath_flags(sess, saved_out_filename);
|
||||
|
||||
|
|
Loading…
Reference in a new issue