|home| |posts| |projects| |cv| |bookmarks| |github|

GCC from source

Download tarball from gcc website.

Install its dependencies:

./contrib/download_prerequisites

Configure it:

mkdir build && cd build
./../configure --prefix=$HOME/opt/gcc --disable-multilib --enable-languages=c,c++

Build it:

make -j $(nproc)

Install it:

make install