We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 062ba22 commit 4b9e572Copy full SHA for 4b9e572
src/comp/back/link.rs
@@ -509,7 +509,10 @@ fn link_binary(sess: session::session,
509
option::none. { sess.fatal("can't find main.o") }
510
};
511
512
+ // The default library location, we need this to find the runtime.
513
+ // The location of crates will be determined as needed.
514
let stage: str = "-L" + sess.filesearch().get_target_lib_path();
515
+
516
let prog: str = "gcc";
517
// The invocations of gcc share some flags across platforms
518
@@ -579,7 +582,7 @@ fn link_binary(sess: session::session,
579
582
gcc_args += ["-lm", main];
580
583
}
581
584
- gcc_args += ["-Lrt", "-lrustrt"];
585
+ gcc_args += ["-lrustrt"];
586
587
gcc_args += rpath::get_rpath_flags(sess, saved_out_filename);
588
0 commit comments