Last active
December 22, 2015 11:28
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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