交叉编译工具下载:
git clone git@github.com:secularbird/crosstool-ng.git
git checkout origin/macporting -b macporting
cd crosstool-ng
./bootstrap ./configure --prefix=${install_path} --with-objcopy=/opt/local/bin/gobjcopy --with-objdump=/opt/local/bin/gobjdump --with-libtool=/opt/local/bin/glibtool --with-readelf=/opt/local/bin/greadelf --witibtoolize=/opt/local/bin/glibtoolize make make install
ct-ng menuconfig
Paths and misc options ---> [*] Try features marked as EXPERIMENTAL
Paths and misc options ---> [*] Debug crosstool-NG ---> Debug crosstool-NG ---> gzip saved states (NEW)
Paths and misc options ---> Maximum log level to see: (INFO)
Target options ---> Target Architecture (arm) Target options ---> (armv6k) Architecture level Target options ---> (arm1176jzf-s) Tune for CPU Target options ---> (vfp) Use specific FPU
Operating System ---> Target OS (linux) Operating System ---> Linux kernel version (2.6.32.60 (longterm))
C compiler ---> C compiler (gcc) C compiler ---> [*] Show Linaro versions C compiler ---> gcc version (linaro-4.6-2013.04) C compiler ---> [*] C++
C compiler ---> [ ] Link libstdc++ statically into the gcc binary
C-library ---> C library (glib) C-library ---> glibc version (2.13)
Companion libraries ---> GMP version (4.3.2)
Companion tools ---> [*] Build some companion tools Companion tools ---> [*] make
ct-ng build