Skip to content

Instantly share code, notes, and snippets.

@damienzhang
Last active Dec 22, 2015
Embed
What would you like to do?
How to build a local copy of GCC 4.7.3 (just C and C++) This is built without support for graphite loop optimizations.
wget ftp://gcc.gnu.org/pub/gcc/releases/gcc-4.7.3/gcc-4.7.3.tar.bz2
tar xjf gcc-4.7.3.tar.bz2
cd gcc-4.7.3
./contrib/download_prerequisites
cd ..
mkdir build
cd build
export PREFIX=/sim/dev/sdz/tools
../gcc-4.7.3/configure \
--prefix=$PREFIX \
--enable-bootstrap \
--enable-shared \
--enable-threads=posix \
--enable-checking=release \
--with-system-zlib \
--enable-__cxa_atexit \
--disable-libunwind-exceptions \
--enable-gnu-unique-object \
--enable-clocale=gnu \
--enable-languages=c,c++ \
--disable-multilib
make -j32 && make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment