-
-
Save ksutcr18/f24c7ffe6f0547a6ae3ccdd262661f93 to your computer and use it in GitHub Desktop.
Build GCC 4.9.3 on a Raspberry Pi 2b running Raspian 2015-05-05
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
| sudo apt-get install libmpc-dev | |
| sudo apt-get install libmpfr-dev | |
| sudo apt-get install libgmp-dev | |
| export LDFLAGS='-L/usr/lib/arm-linux-gnueabihf/ -L/usr/lib/gcc/arm-linux-gnueabihf/4.6/' | |
| export CFLAGS='-I/usr/include/arm-linux-gnueabihf/ -mfloat-abi=hard '${LDFLAGS} | |
| export CXXFLAGS=${CFLAGS} | |
| export CPPFLAGS=${CFLAGS} | |
| sudo ln -s /usr/lib/arm-linux-gnueabihf/crti.o /usr/lib | |
| sudo ln -s /usr/lib/arm-linux-gnueabihf/crtn.o /usr/lib | |
| sudo ln -s /usr/lib/arm-linux-gnueabihf/crt1.o /usr/lib | |
| cd ~/Downloads | |
| curl ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.9.3/gcc-4.9.3.tar.bz2 -O | |
| tar xvfj gcc-4.9.3.tar.bz2 | |
| cd gcc-4.9.3 | |
| ./configure --disable-multilib --enable-languages=c,c++ --program-suffix=-4.9 | |
| make -j 2 | |
| sudo make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment