[OE-core] finding libgcc.a with meta-toolchain-sdk toolchain

Phil Blundell philb at gnu.org
Wed Aug 10 09:19:39 UTC 2011


On Tue, 2011-08-09 at 23:20 -0500, Kumar Gala wrote:
> Trying to build something like u-boot w/the toolchain produced by meta-toolchain-sdk and get the following:
> 
> $ powerpc-poky-linux-gnuspe-ld -g -Ttext 0x40000 -o hello_world -e hello_world hello_world.o libstubs.o -L. -lgcc
> powerpc-poky-linux-gnuspe-ld: cannot find -lgcc
> 
>[...]
>
> What do we need to tweak so we can find libgcc.a?

The best/easiest fix is to link with gcc rather than calling ld
directly.  You can use -nostartfiles to suppress crt1.o and the like.
If you must invoke ld manually for whatever reason then you will have to
use something like `$(CC) --print-libgcc-file-name` to obtain the path
to libgcc.

p.






More information about the Openembedded-core mailing list