This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: clib linking


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]