aboutsummaryrefslogtreecommitdiffstats
path: root/chapter8/binutils.sh
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-04-06 14:09:59 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2021-04-06 14:09:59 -0500
commitaf28b78b8e659f995b39a5dde2ce2cef0da9fbe0 (patch)
treea80d4cfef7713f7aa26137c0da553358af4cd7b2 /chapter8/binutils.sh
parent783a4c48e04e81783848f0cb0f757f6a836d7f6e (diff)
Add chapter8 script commands.
Diffstat (limited to 'chapter8/binutils.sh')
-rw-r--r--chapter8/binutils.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/chapter8/binutils.sh b/chapter8/binutils.sh
index 7a693aa..41a99b1 100644
--- a/chapter8/binutils.sh
+++ b/chapter8/binutils.sh
@@ -1,3 +1,23 @@
#!/bin/bash
+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