1. 修改configure文件:
cross_compiling=yes
2.运行
export CC="/opt/crosstool/mipsel-unknown-linux-gnu/gcc-3.3.3-glibc-2.2.5/bin/mipsel-unknown-linux-gnu-gcc"
./configure --prefix /home/frank/pth --host mips-linux --with-endianness=little --enable-pthread
make
make install
编译的输出在/home/frank/pth目录下