Skip to content

Instantly share code, notes, and snippets.

Last active Dec 22, 2015
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.
tar xjf gcc-4.7.3.tar.bz2
cd gcc-4.7.3
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++ \
make -j32 && make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment