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

mkdir -v build
cd build || exit 1

../libstdc++-v3/configure \
    --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}" &&

make &&
make -j1 DESTDIR="${LFS}" install