cpu arch에 맞추어 toolchain 을 받습니다.
압축을 풀고 path 를 추가해줍니다.
export PATH=~/OpenWrt-SDK-atheros-2.6-for-Linux-x86_64/staging_dir_mips/bin/:$PATH
#test.c
#include <stdio.h>
int main() {
printf("hello world");
}
mips-linux-uclibc-gcc test.c -s -o test
http://downloads.openwrt.org/kamikaze/7.09/atheros-2.6/OpenWrt-SDK-atheros-2.6-for-Linux-i686.tar.bz2
http://downloads.openwrt.org/kamikaze/7.09/atheros-2.6/OpenWrt-SDK-atheros-2.6-for-Linux-x86_64.tar.bz2
http://downloads.openwrt.org/kamikaze/7.09/atheros-2.6/OpenWrt-SDK-atheros-2.6-for-Linux-x86_64.tar.bz2
압축을 풀고 path 를 추가해줍니다.
export PATH=~/OpenWrt-SDK-atheros-2.6-for-Linux-x86_64/staging_dir_mips/bin/:$PATH
#test.c
#include <stdio.h>
int main() {
printf("hello world");
}
mips-linux-uclibc-gcc test.c -s -o test