On Tue, Oct 29, 2013 at 7:59 PM, Grissiom <chaos.pro...@gmail.com> wrote:
> Hi all,
>
> I'm developing on BBB and I'm new to Angstrom. I have build a toolchain
> with the angstrom-v2013.06-yocto1.4 branch of setup-scripts (
> https://github.com/Angstrom-distribution/setup-scripts/ ) using `bitbake
> meta-toolchain`. But when I want to use the toolchain to cross compile a
> program statically, I got an error:
>
> arm-angstrom-linux-gnueabi-gcc -std=gnu99 -static
> --sysroot=/home/grissiom/x-tools/angstrom-toolchain//sysroots/armv7ahf-vfp-neon-angstrom-linux-gnueabi
> tests/vbus_ser.c -o vbus_ser
> /home/grissiom/x-tools/angstrom-toolchain/sysroots/i686-angstromsdk-linux/usr/bin/armv7ahf-vfp-neon-angstrom-linux-gnueabi/../../libexec/armv7ahf-vfp-neon-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/4.7.4/ld:
> cannot find -lc
> collect2: error: ld returned 1 exit status
>
> I could only find the libc.so in the sysroot but no libc.a. Is there anyway
> to let the toolchain install static libs?
>

try adding

IMAGE_FEATURES += "staticdev-pkgs" to local.conf and rebuild the SDK
and see if that helps

> --
> Cheers,
> Grissiom
> _______________________________________________
> Angstrom-distro-devel mailing list
> Angstrom-distro-devel@linuxtogo.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel

_______________________________________________
Angstrom-distro-devel mailing list
Angstrom-distro-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel

Reply via email to