toolchains and dependencies to libgcc_s.so.1

Rich Felker dalias at aerifal.cx
Wed Jul 26 18:14:34 PDT 2006


On Wed, Jul 26, 2006 at 01:00:06PM -0600, Erik Andersen wrote:
> On Wed Jul 26, 2006 at 09:04:27AM +0200, ayoub zaki wrote:
> > Hi List,
> >  
> >  I have built toolchains for i386/arm/armeb with buildroot,and
> >  when trying to compile a simple hello world I'm getting a
> >  dependency to libgcc_s.so.1for i386/armeb :
> [----------snip-------------]
> >  Is that a bug in gcc or something else ? and how can I build
> >  toolchains without this problem ?
> 
> This is on purpose.  If you don't like it, it can easily be
> changed by telling gcc to staticly link all needed libgcc stuff
> into each app (often making your target system larger, but not
> always).  Anyway...

If hello, world is causing libgcc_s to get linked, this is surely a
bug in the toolchain... Using -static-libgcc option to gcc will work
around it, I think.

Rich



More information about the uClibc mailing list