Forked from cfstras/-Build static versions of binutils, for example ld, gprof, nm, strip, objdump, ar, strings; with mingw or on *nix
Created
July 16, 2022 14:54
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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