Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save atlury/8d5a20419a8f6f149d922f9862d966d9 to your computer and use it in GitHub Desktop.
Save atlury/8d5a20419a8f6f149d922f9862d966d9 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment