diff options
author | William Harrington <kb0iic@berzerkula.org> | 2021-03-23 13:14:22 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2021-03-23 13:14:22 -0500 |
commit | 887bf450c01c511a3f6d048d3db78e8edfb21e8a (patch) | |
tree | 9664bce126d537bd524bacdf0e22d2b6d1e419b9 /chapter5/gcc.sh | |
parent | e4487709ac27d80179c2a685b91ed023ca178021 (diff) |
Cleanup chapter5 scripts.
Diffstat (limited to 'chapter5/gcc.sh')
-rw-r--r-- | chapter5/gcc.sh | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/chapter5/gcc.sh b/chapter5/gcc.sh index 6ef4ac6..ccc9630 100644 --- a/chapter5/gcc.sh +++ b/chapter5/gcc.sh @@ -1,3 +1,5 @@ +#!/bin/bash + mkdir -p mpfr gmp mpc tar -xf ../mpfr-*.tar.xz -C mpfr --strip-components=1 tar -xf ../gmp-*.tar.xz -C gmp --strip-components=1 @@ -11,13 +13,13 @@ case $(uname -m) in esac mkdir -v build -cd build +cd build || exit 1 ../configure \ - --target=${LFS_TGT} \ - --prefix=${LFS}/tools \ + --target="${LFS_TGT}" \ + --prefix="${LFS}"/tools \ --with-glibc-version=2.11 \ - --with-sysroot=${LFS} \ + --with-sysroot="${LFS}" \ --with-newlib \ --without-headers \ --enable-initfini-array \ @@ -39,4 +41,4 @@ make -j1 install && cd .. cat gcc/limitx.h gcc/glimits.h gcc/limity.h > \ - `dirname $(${LFS_TGT}-gcc -print-libgcc-file-name)`/install-tools/include/limits.h + "$(dirname "$("${LFS_TGT}"-gcc -print-libgcc-file-name)")"install-tools/include/limits.h |