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


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

Re: Dynamic linking


Sébastien Côté wrote:
> 
> Hi,
> 
> I'd like to know if it's possible to link dynamically with newlib
> because when I compiled newlib, all I got was libc.a and no libc.so.
> Does newlib support dynamic linking ?
>

No, it does not.
 
> I would also like to know how to tell the linker (ld) to use newlib
> instead of glibc when I link a static executable.
>

Use the -L option to specify the directory where you have the newlib libraries installed.
You likewise want to specify where your low-level support library is located.
 
-- Jeff J.

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