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
./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