eth0s/toolchain/05-libstdc++

40 lines
980 B
Text
Raw Permalink Normal View History

name=gcc
2022-04-09 08:19:46 +08:00
version=11.2.0
2021-04-18 08:19:42 +08:00
source="http://ftp.gnu.org/gnu/gcc/gcc-$version/gcc-$version.tar.xz"
2018-12-01 00:12:45 +08:00
build() {
cd $name-$version
2018-12-01 00:12:45 +08:00
mkdir -v build32
cd build32
../libstdc++-v3/configure \
--host=i686-lfs-linux-gnu \
--prefix=/tools \
--libdir=/tools/lib32 \
--disable-multilib \
--disable-nls \
--disable-libstdcxx-threads \
--disable-libstdcxx-pch \
--with-gxx-include-dir=/tools/$LFS_TGT/include/c++/$version \
CC="$LFS_TGT-gcc -m32" \
CXX="$LFS_TGT-g++ -m32"
make
make install
cd -
2018-12-01 00:12:45 +08:00
mkdir -v build
cd build
../libstdc++-v3/configure \
--host=$LFS_TGT \
--prefix=/tools \
--disable-multilib \
--disable-nls \
--disable-libstdcxx-threads \
--disable-libstdcxx-pch \
--with-gxx-include-dir=/tools/$LFS_TGT/include/c++/$version
2018-12-01 00:12:45 +08:00
make
make install
}