Stream: t-compiler/help

Topic: +crt-static for glibc

Josh Triplett (Feb 10 2020 at 22:52, on Zulip):

I'm trying to prototype support for +crt-static on glibc, and I could use some help figuring out the right way to do so. It looks like rustc automatically pulls in the libraries needed by various crates that form part of the standard library. But it isn't at all clear to me how target-feature=+crt-static can affect that. As far as I can tell, crates just avoid emitting rustc-link-lib from their build scripts on musl, and then counts on other parts of rustc to link to the right libraries on musl. Is that the right way to handle it for glibc as well?

Last update: Oct 28 2020 at 18:00UTC