Thursday, November 11, 2010

Cross compile the embedded Linux code

Below is the Linux shell command to cross compile embedded Linux code.

./arm-none-linux-gnueabi-gcc -o ObjectName ./FileName.c -Wl,-rpath=/sysroot/lib:/sysroot/usr/lib -Wl,--dynamic-linker=/sysroot/lib/ld-linux.so.3 -lpthread -lrt

No comments:

Post a Comment