aboutsummaryrefslogtreecommitdiffstats
path: root/chapter6/binutils.sh
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-03-23 13:14:12 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2021-03-23 13:14:12 -0500
commite4487709ac27d80179c2a685b91ed023ca178021 (patch)
tree4f3ab10c3035da1820015f07a4b56dd4d8b02731 /chapter6/binutils.sh
parentb65d40a58e83236504939be82747671d3c2c0599 (diff)
Clean up chapter6 scripts.
Diffstat (limited to 'chapter6/binutils.sh')
-rw-r--r--chapter6/binutils.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/chapter6/binutils.sh b/chapter6/binutils.sh
index 5411f57..9b97c4b 100644
--- a/chapter6/binutils.sh
+++ b/chapter6/binutils.sh
@@ -1,14 +1,16 @@
+#!/bin/bash
+
mkdir -v build
-cd build
+cd build || exit 1
../configure \
--prefix=/usr \
- --build=$(../config.guess) \
- --host=${LFS_TGT} \
+ --build="$(../config.guess)" \
+ --host="${LFS_TGT}" \
--disable-nls \
--enable-shared \
--disable-werror \
--enable-64-bit-bfd &&
make &&
-make DESTDIR=${LFS} -j1 install &&
-install -vm755 libctf/.libs/libctf.so.0.0.0 ${LFS}/usr/lib
+make DESTDIR="${LFS}" -j1 install &&
+install -vm755 libctf/.libs/libctf.so.0.0.0 "${LFS}"/usr/lib