Skip to content

Instantly share code, notes, and snippets.

@yakamoz423
yakamoz423 / build.sh Build static versions of binutils, for example ld, gprof, nm, strip, objdump, ar, strings; with mingw or on *nix
VERSION=2.25
wget http://ftp.gnu.org/gnu/binutils/binutils-$VERSION.tar.gz || exit 1
tar xzf binutils-$VERSION.tar.gz || exit 1
cd binutils-$VERSION || exit 1
./configure --disable-nls --prefix=$(pwd)/bin || exit 1
make configure-host || exit 1
make LDFLAGS="-all-static" || exit 1
make install || exit 1