Created
January 20, 2011 06:52
-
-
Save ambakshi/787509 to your computer and use it in GitHub Desktop.
Build gcc from source
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
#!/bin/sh | |
GCC_VER=4.5.2 | |
wget -O /tmp/gcc-$GCC_VER.tar.bz2 ftp://ftp.gnu.org/gnu/gcc/gcc-$GCC_VER/gcc-$GCC_VER.tar.bz2 | |
tar jxvf /tmp/gcc-$GCC_VER.tar.bz2 | |
cd gcc-$GCC_VER | |
mkdir -p $HOME/opt/gcc/gcc-$GCC_VER | |
./configure --prefix=$HOME/opt/gcc/gcc-$GCC_VER --with-mpc | |
CPUCOUNT=`grep processor /proc/cpuinfo | wc -l` | |
make -j$CPUCOUNT | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment