On 11/15/2013 03:01 AM, Niko Matsakis wrote:
A few quick questions and comments:

On Fri, Nov 15, 2013 at 12:09:28AM -0800, Alex Crichton wrote:
I've been thinking about static linking recently, along with a little bit of
linking in general, and I wanted to see what others thought.

# The Goal

Primarily, I believe that if desired, rustc should be able to generate an
executable or dynamic library with no dependence on any rust libraries. This
includes things like librustrt and libextra. Rust shouldn't be striving to lift
dependence on system libraries, that'll come at later times if need be.
It seems like you *are* striving to lift dependencies on non-rust
libraries, though. For example, you mention having libuv be statically
imported into a .rlib file etc. Or did I misunderstand?

I took this to mean that we would just be packaging up the static libraries to save them for the final link step (since the rlib is just a .o file, not pre-linked to it's static lib dependencies). The effect of this though may be that all downstream crates implicitly have access to all the static library's symbols.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to