This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: Dynamic linking
- To: Sébastien Côté <scote1 at Matrox dot COM>
- Subject: Re: Dynamic linking
- From: "J. Johnston" <jjohnstn at cygnus dot com>
- Date: Mon, 10 Jul 2000 15:20:10 -0400
- CC: newlib at sourceware dot cygnus dot com
- Organization: Cygnus Solutions
- References: <3969EA52.56BCD224@matrox.com>
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.