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/libstdc++.sh | |
parent | e4487709ac27d80179c2a685b91ed023ca178021 (diff) |
Cleanup chapter5 scripts.
Diffstat (limited to 'chapter5/libstdc++.sh')
-rw-r--r-- | chapter5/libstdc++.sh | 12 |
1 files changed, 7 insertions, 5 deletions
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 |