1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#!/bin/env bash set -e mkdir -p /toolchain/binutils/.build && cd /toolchain/binutils tar xf /downloads/binutils-$BINUTILS_VERSION.tar.xz cd .build ../binutils-$BINUTILS_VERSION/configure \ --disable-nls \ --disable-werror \ --enable-colored-disassembly \ --prefix=/opt/toolchain \ --target=$TARGET \ --with-pic make -j$(nproc) make install-strip