Bash script to build LFS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
482 B

#!/usr/bin/env bash
mkdir -p build
cd build || return 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++/16.1.0
make
make DESTDIR="${LFS}" install
rm -v "${LFS}"/usr/lib/lib{stdc++{,exp,fs},supc++}.la