diff options
author | William Harrington <kb0iic@berzerkula.org> | 2021-03-22 19:48:11 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2021-03-22 19:48:11 -0500 |
commit | 9d68d5da4115353816ab4f6b1c7a4f5db43576f9 (patch) | |
tree | 60ca50e8dd0fabfc778c0c908a8d56b1f5030b1a /chapter7/libstdc++.sh | |
parent | ba6db389412d48b20ba81bb5fb373b93b08659f1 (diff) |
Prepare chapter 7 build scripts.
Diffstat (limited to 'chapter7/libstdc++.sh')
-rw-r--r-- | chapter7/libstdc++.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/chapter7/libstdc++.sh b/chapter7/libstdc++.sh new file mode 100644 index 0000000..5e81693 --- /dev/null +++ b/chapter7/libstdc++.sh @@ -0,0 +1,12 @@ +ln -s gthr-posix.h libgcc/gthr-default.h +mkdir build +cd build +../libstdc++-v3/configure \ + CXXFLAGS="-g -O2 -D_GNU_SOURCE" \ + --prefix=/usr \ + --disable-multilib \ + --disable-nls \ + --host=$(uname -m)-lfs-linux-gnu \ + --disable-libstdcxx-pch && +make && +make -j1 install |