diff options
Diffstat (limited to 'chapter7/libstdc++.sh')
-rw-r--r-- | chapter7/libstdc++.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chapter7/libstdc++.sh b/chapter7/libstdc++.sh index 5e81693..c2ef63b 100644 --- a/chapter7/libstdc++.sh +++ b/chapter7/libstdc++.sh @@ -1,12 +1,14 @@ +#!/bin/bash + ln -s gthr-posix.h libgcc/gthr-default.h mkdir build -cd build +cd build || exit 1 ../libstdc++-v3/configure \ CXXFLAGS="-g -O2 -D_GNU_SOURCE" \ --prefix=/usr \ --disable-multilib \ --disable-nls \ - --host=$(uname -m)-lfs-linux-gnu \ + --host="$(uname -m)"-lfs-linux-gnu \ --disable-libstdcxx-pch && make && make -j1 install |