Browsed by
月份:2014年1月

centos 6.5-i386-minimal 最小安装下,安装交叉编译环境

centos 6.5-i386-minimal 最小安装下,安装交叉编译环境

mkdir /data/GnuArmToolchain

cd /data/GnuArmToolchain

yum install wget

wget http://bb.osmocom.org/trac/raw-attachment/wiki/GnuArmToolchain/gnu-arm-build.2.sh
chmod +x gnu-arm-build.2.sh

yum install zlib-devel
yum install mpfr-devel
yum install gcc
yum install automake
yum install texinfo

cd src
wget http://ftp.gnu.org/gnu/gcc/gcc-4.5.2/gcc-4.5.2.tar.bz2
wget http://ftp.gnu.org/gnu/binutils/binutils-2.21.1a.tar.bz2
wget ftp://sources.redhat.com/pub/newlib/newlib-1.19.0.tar.gz
wget ftp://gcc.gnu.org/pub/gcc/infrastructure/mpc-0.8.1.tar.gz

tar zxvf mpc-0.8.1.tar.gz
cd mpc-0.8.1
./configure
make
make check
make install
cd ..

vi /etc/ld.so.conf.d/mpc.conf
增加 /usr/local/lib/

ldconfig

./gnu-arm-build.2.sh