Last active
May 3, 2024 23:53
-
-
Save maxlevesque/5813df2fcee107c757f4 to your computer and use it in GitHub Desktop.
how to build gcc from sources
This file contains 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 install libgmp-dev libmpc-dev libisl-dev libmpfr-dev | |
# change 6.3 to anything you'd like | |
wget http://mirrors-usa.go-parts.com/gcc/releases/gcc-6.3.0/gcc-6.3.0.tar.bz2 | |
tar jxvf gcc-6.3.0.tar.bz2 | |
mkdir objdir | |
cd objdir | |
# change /tmp/mygcc6.3 to any output folder you'd like | |
../gcc-6.3.0/configure --prefix=/tmp/mygcc6.3 --disable-multilib --disable-werror | |
make -j | |
make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment