Subject: Re: Shared libraries and libtool
To: Murray Armfield , Nick Hudson <skrll@netbsd.org>
From: Nick Hudson <skrll@netbsd.org>
List: netbsd-help
Date: 03/22/2002 09:57:42
On Friday 22 March 2002 9:41 am, Murray Armfield wrote:
 
> *** Warning: This library needs some functionality provided by -lgcc.
> *** I have the capability to make that library automatically link in when
> *** you link to this library.  But I can only do this if you have a
> *** shared version of the library, which you do not appear to have.
> *** The inter-library dependencies that have been dropped here will be
> *** automatically added whenever a program is linked with this library
> *** or is declared to -dlopen it.
> 
> I'm using new toolchain, but libgcc.so does not appear in my /usr/lib.
> Just rebuild gnu-lib and libgcc.so is not even attempted at link. Are there 
> plans to create a libgcc.so for NetBSD-current? Has something happened to 
> it? 
> All libgcc shared object files are built, but not linked. This is on 
> current as at 21/03/02 on i386.

-lgcc should not appear in the link line of a libary. -lgcc_pic can appear on 
a -current machine.

Try and find out what's adding it to the link line. Check its not in your 
libtool and if it you'll need to remake libtool from current pkgsrc.

Nick