Friday, July 19, 2013

Build an old version of gcc

Build an old version of gcc


# wget http://gcc.petsads.us/releases/gcc-3.4.6/gcc-3.4.6.tar.gz
# tar -zxvf  gcc-3.4.6.tar.gz
# mkdir gcc-3.4.6-build
# cd gcc-3.4.6-build/

# ../gcc-3.4.6/configure --prefix=/opt/gcc-3.4.6 --mandir=/opt/gcc-3.4.6/share/man --infodir=/opt/gcc-3.4.6/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux --disable-java-awt --without-x
# make
# make install
 


# /opt/gcc-3.4.6/bin/gcc -v
Reading specs from /opt/gcc-3.4.6/lib/gcc/i386-redhat-linux/3.4.6/specs
Configured with: ../gcc-3.4.6/configure --prefix=/opt/gcc-3.4.6 --mandir=/opt/gcc-3.4.6/share/man --infodir=/opt/gcc-3.4.6/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux --disable-java-awt --without-x
Thread model: posix
gcc version 3.4.6

No comments:

Post a Comment