mirror of
https://github.com/mattwind/alfs.git
synced 2025-07-28 06:39:15 +00:00
36 lines
616 B
Bash
Executable File
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"
|
|
|