- A toolchain compatible with the target architecture and operating system.
Substitute arm-linux-gnueabihf with your toolchain's target triplet.
$ export TARGET=arm-linux-gnueabihf
$ export STATIC_ROOT=`readlink -f ~/${TARGET}-static`
$ wget http://ftp.gnu.org/gnu/binutils/binutils-2.34.tar.xz
tar xJf binutils-2.34.tar.xz
cd binutils-2.34
$ sed -i -e 's/$MISSING makeinfo/true/g' configure
$ mkdir build
$ cd build
$ ../configure --host="${TARGET}" --prefix="${STATIC_ROOT}" --disable-nls --with-stage1-ldflags="--static"
$ make
$ make install-strip