aboutsummaryrefslogtreecommitdiffstats
path: root/chapter8/binutils.sh
blob: b5c5732920070155310040eff515b4ce03a3f57c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/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