mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
rustc: Link in libmorestack.a when --stack-growth
This commit is contained in:
parent
8d7863fad0
commit
4dcb0ee0ce
@ -633,6 +633,11 @@ fn link_binary(sess: session::session,
|
||||
gcc_args += ["-lrt", "-ldl"];
|
||||
}
|
||||
|
||||
// Stack growth requires statically linking a __morestack function
|
||||
if sess.get_opts().stack_growth {
|
||||
gcc_args += ["-lmorestack"];
|
||||
}
|
||||
|
||||
gcc_args += rpath::get_rpath_flags(sess, out_filename);
|
||||
|
||||
log #fmt("gcc link args: %s", str::connect(gcc_args, " "));
|
||||
|
Loading…
Reference in New Issue
Block a user