Closed binarycrusader closed 7 years ago
Perhaps a solaris block just needs to be added here?
(that's where we add our unwinding runtime dependencies)
@alexcrichton almost, that and one other place needed fixing; I'll send a pull request tomorrow that will fix all of the rustbuild issues I encountered. Thanks!
/cc @dhduvall
Awesome, thanks @binarycrusader!
I've been using the (now obsolete) Makefile-based builds successfully for some time now while trying to get rust running on Solaris x86_64 (and from there sparcv9).
However, now that the rustbuild is the build system used for master, I've hit an unexpected regression:
Initially, I thought this would be simple enough to workaround by altering
librustc_back/target/solaris_base.rs
:However, after making that change and rebuilding, I still hit the issue.
So I have questions: 1) where is the right place to ensure -lgcc is used for linking here? 2) do I need to apply this fix to the beta snapshot I'm using to build master first or just to master itself before building? 3) shouldn't rust explicitly specifying -lgcc automatically? The gcc documentation appears to imply that libgcc is still needed in most cases, notably when using -nostdlibs (of which -nodefaultlibs appears to be a superset?)
The Solaris linker fails (as expected) here since there's an implicit dependency that's known, but wasn't explicitly named.