#!/bin/bash set -e expect -c "spawn ls" sed -i '/@\tincremental_copy/d' gold/testsuite/Makefile.in && mkdir -v build cd build || exit 1 ../configure --prefix=/usr \ --enable-gold \ --enable-ld=default \ --enable-plugins \ --enable-shared \ --disable-werror \ --enable-64-bit-bfd \ --with-system-zlib && make tooldir=/usr && make tooldir=/usr -j1 install && rm -fv /usr/lib/lib{bfd,ctf,ctf-nobfd,opcodes}.a