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"];
|
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);
|
gcc_args += rpath::get_rpath_flags(sess, out_filename);
|
||||||
|
|
||||||
log #fmt("gcc link args: %s", str::connect(gcc_args, " "));
|
log #fmt("gcc link args: %s", str::connect(gcc_args, " "));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user