AnsweredAssumed Answered

$CC  Statically compiled applications

Question asked by xuhui li on Apr 12, 2016
Latest reply on Apr 14, 2016 by Biyong Sun

hello everyone:

     I want to use meta-toolchain Statically compiled applications ,but I encountered some problems

Iuse

arm-linux-gnueabi-gcc -o hello hello.c -static

is ok ,but I use

source /opt/poky/1.7/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi

$CC -o hello hello.c -static

/opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.1/ld: cannot find -lc

collect2: error: ld returned 1 exit status

Are meta-toolchain missing static library? And how can I build SDK it contains the static library

 

 

Outcomes