diff options
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 |