Files
alfs/toolchain/libstd-pass-1.sh
2021-01-10 06:38:21 -08:00

36 lines
616 B
Bash
Executable File

#!/bin/bash
if [ "$(whoami)" != "lfs" ]; then
echo "Script must be run as user: lfs"
exit 255
fi
cd $LFS/sources
tar xvf gcc-10.2.0.tar.xz
cd gcc-10.2.0
mkdir -v build
cd build
../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++/10.2.0
make
make DESTDIR=$LFS install
cd $LFS/sources
rm -rf gcc-10.2.0
echo "Done"