clib linking

Ian Lance Taylor ian@airs.com
Wed Dec 22 15:27:00 GMT 2004


Karsten Fuhrmann <karsten_fuhrmann@cartoon-film.de> writes:

> is there a way to tell the linker to link static against libc, because
> in my make file i cant find the -lc flag anywhere. Maybe clib is a
> implicit flag or how is this handled.

Normally -lc is added by the compiler when it invokes the linker.  If
you are using gcc, use the -v option to see precisely how it invokes
the linker.

> And the same magic seems to work with the part of code which is linked
> to every program to allow loading of shared libs am i right ?

If I understand you correctly, then you are right.

Ian



More information about the Binutils mailing list