Skip to content

Instantly share code, notes, and snippets.

@damienzhang
Last active December 22, 2015 11:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save damienzhang/6465627 to your computer and use it in GitHub Desktop.
Save damienzhang/6465627 to your computer and use it in GitHub Desktop.
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