Comment 19 for bug 2049904

Revision history for this message
Mate Kukri (mkukri) wrote (last edit ):

@jpakkane

I think what is going on is that rustc adds `-lc` but at a different place because its own libraries depend on libc, but it doesn't know that for external libraries.

When specifying `-Clink-arg=-libfoo.a -Clink-arg=-lc`, it seems to know that libfoo that.a also depends on the libc.

My question is, should rustc know that automatically, or is specifying it like that reasonable?