rustc: Link in libmorestack.a when --stack-growth

This commit is contained in:
Brian Anderson 2011-11-28 18:15:54 -08:00
parent 8d7863fad0
commit 4dcb0ee0ce

View File

@ -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, " "));