From b2ec62574ed8f6417f57f8f3d3f98d3d0967876e Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Mon, 8 Jun 2020 14:27:33 +0300 Subject: binutils: link statically --- core/binutils/build | 37 +++++++++++++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 4 deletions(-) (limited to 'core/binutils') diff --git a/core/binutils/build b/core/binutils/build index 67a1af16..06e14461 100755 --- a/core/binutils/build +++ b/core/binutils/build @@ -1,12 +1,15 @@ #!/bin/sh -e +export LDFLAGS="$LDFLAGS -static" +export CCLD="${CC:-cc} -all-static" + # Architecture specific build options case ${3:-$(uname -m)} in i*86) archopts="--build=i686-pc-linux-musl \ --host=i686-pc-linux-musl \ --enable-64-bit-bfd" ;; - x86_64) archopts="--build=x86_64-pc-linux-musl \ - --host=x86_64-pc-linux-musl" + x86-64) archopts="--build=x86_64-pc-linux-musl \ + --host=x86-64-pc-linux-musl" esac cat > makeinfo <