Subject: Re: Shared Libs and executables: How?
To: Ken Hornstein <kenh@cmf.nrl.navy.mil>
From: Scott Reynolds <scottr@Plexus.COM>
List: netbsd-help
Date: 10/29/1996 11:11:44
On Mon, 28 Oct 1996, Ken Hornstein wrote:

> >>I have seen a -Bdynamic options for ld, the -shared option for gcc.
> >>
> >Do you know if gcc can be instructed to use shared/static libs on a
> >file-by-file basis? Atleast for my version of gcc, it's an all or
> >nothing deal, but ld seems to have this capability.
> 
> I did it once by using a whole mess of -Xlinker arguments and passing the
> right magic to ld.

Actually, since shared libraries are used by default, it's just as easy to
replace "-lfoo" with "/usr/lib/libfoo.a" (of course, don't forget to add
/usr/lib/libc.a, if applicable).

--scott