From 887bf450c01c511a3f6d048d3db78e8edfb21e8a Mon Sep 17 00:00:00 2001 From: William Harrington Date: Tue, 23 Mar 2021 13:14:22 -0500 Subject: Cleanup chapter5 scripts. --- chapter5/libstdc++.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'chapter5/libstdc++.sh') diff --git a/chapter5/libstdc++.sh b/chapter5/libstdc++.sh index 1e21f35..d1be7dd 100644 --- a/chapter5/libstdc++.sh +++ b/chapter5/libstdc++.sh @@ -1,14 +1,16 @@ +#!/bin/bash + mkdir -v build -cd build +cd build || exit 1 ../libstdc++-v3/configure \ - --host=${LFS_TGT} \ - --build=$(../config.guess) \ + --host="${LFS_TGT}" \ + --build="$(../config.guess)" \ --prefix=/usr \ --disable-multilib \ --disable-nls \ --disable-libstdcxx-pch \ - --with-gxx-include-dir=/tools/${LFS_TGT}/include/c++/${VERSION} && + --with-gxx-include-dir=/tools/"${LFS_TGT}"/include/c++/"${VERSION}" && make && -make -j1 DESTDIR=${LFS} install +make -j1 DESTDIR="${LFS}" install -- cgit v1.2.3-54-g00ecf