aboutsummaryrefslogtreecommitdiffstats
path: root/chapter7/libstdc++.sh
blob: 87c89b7a4d69c76a651da11b27fd011da5a3f2ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
set -e

ln -s gthr-posix.h libgcc/gthr-default.h
mkdir 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 \
    --disable-libstdcxx-pch &&
make &&
make -j1 install