diff options
author | Cem Keylan <cem@ckyln.com> | 2021-03-17 11:33:29 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2021-03-17 11:33:29 +0300 |
commit | 49ddf6f06f09f28dd4b8a487ea6181c78f2d1c1a (patch) | |
tree | e6641dc26bdb95a1133f479f02052a3a0029531d /testing/binutils/build | |
parent | 186e53bd86465ae6e49c09caf8b55ae5452b0a04 (diff) | |
download | repository-49ddf6f06f09f28dd4b8a487ea6181c78f2d1c1a.tar.gz |
[TESTING] drop binutils and gcc
Diffstat (limited to 'testing/binutils/build')
-rwxr-xr-x | testing/binutils/build | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/testing/binutils/build b/testing/binutils/build deleted file mode 100755 index 8bc653ee..00000000 --- a/testing/binutils/build +++ /dev/null @@ -1,71 +0,0 @@ -#!/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" -esac - -cat > makeinfo <<EOF -#!/bin/sh -printf 'makeinfo (GNU texinfo) 5.2\n' -EOF - -chmod +x makeinfo -export PATH=$PATH:$PWD - -# Word splitting is intentional here. -# shellcheck disable=2086 -./configure \ - --prefix=/usr \ - $archopts \ - --enable-targets=x86_64-pep \ - --disable-multilib \ - --disable-shared \ - --disable-werror \ - --enable-gold \ - --disable-gdb \ - --disable-nls \ - --disable-readline \ - --disable-gprof \ - --disable-plugins \ - --with-mmap \ - --with-static-standard-libraries \ - --with-system-zlib - -# Linking binutils statically is HARD. configure script -# and the main Makefile straight up ignores our flags. -# -# I would have never thought that linking binutils -# statically would lead to a size reduction, but -# it gets 2MB smaller (25 to 23MB). -make configure-bfd -make configure-ld -make configure-libctf - -make -C libiberty CCLD="$CCLD" -make -C bfd CCLD="$CCLD" -make -C libctf CCLD="$CCLD" -make -C ld CCLD="$CCLD" - -make configure-gold -make -C gold CCLD="$CCLD" - -make configure-opcodes -make -C opcodes CCLD="$CCLD" - -make configure-binutils -make -C binutils CCLD="$CCLD" - -make configure-gas -make -C gas CCLD="$CCLD" - -for dir in libiberty bfd libctf ld gold opcodes binutils gas; do - make -C "$dir" DESTDIR="$1" install -done |