From 9d68d5da4115353816ab4f6b1c7a4f5db43576f9 Mon Sep 17 00:00:00 2001 From: William Harrington Date: Mon, 22 Mar 2021 19:48:11 -0500 Subject: Prepare chapter 7 build scripts. --- chapter7/libstdc++.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 chapter7/libstdc++.sh (limited to 'chapter7/libstdc++.sh') 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 -- cgit v1.2.3-54-g00ecf