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

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