cd /usr/local/src
wget ftp://ftp.cs.cuhk.edu.hk/pub/gnu/gnu/gcc/gcc-3.4.0/gcc-3.4.0.tar.gz

tar zxvf gcc-3.4.0.tar.gz

mkdir gcc-build
cd gcc-build

../gcc-3.4.0/configure --prefix=/usr/local/gcc-3.4.0 --enable-threads=posix --disable-checking --enable--long-long --host=i386-redhat-linux --with-system-zlib --enable-languages=c,c++,java

make (P4-1.6花50分鐘)

make install

% cd /usr/bin
% ln -s ${destdir}/bin/gcc gcc-3.4

eternalwind 發表在 痞客邦 留言(0) 人氣()