Install binutils gold and ninja


I keep source for my code and packages I check out in ~/src, and install packages in ~/opt. The following assumes that. Change as necessary for your system. Also, I use bash, so all my scripts assume bash is your shell.

gold binutils

cd $HOME/src
git clone git://
cd binutils-gdb
./configure --prefix=$HOME/opt/ --enable-gold=default


cd $HOME/src
git clone git://
cd ninja
git checkout release
./ --bootstrap
mkdir -p ~/opt/ninja/bin/
cp ninja ~/opt/ninja/bin/

when you want to do clang development run something like this

export LLVMBASE=<directory with checked out compiler>
export PATH=$LLVMBASE/build/bin:$HOME/opt/ninja/bin:$HOME/opt/$PATH