This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: clib linking
- From: Ian Lance Taylor <ian at airs dot com>
- To: Karsten Fuhrmann <karsten_fuhrmann at cartoon-film dot de>
- Cc: binutils at sources dot redhat dot com
- Date: 22 Dec 2004 10:27:33 -0500
- Subject: Re: clib linking
- References: <4F13BDDE-5419-11D9-807D-000A95DC1E96@cartoon-film.de>
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