2019-09-28 00:17:56 +08:00
|
|
|
name=gcc
|
2020-11-13 13:58:01 +08:00
|
|
|
version=10.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
|
|
|
|
2019-09-28 00:17:56 +08:00
|
|
|
build() {
|
|
|
|
cd $name-$version
|
2018-12-01 00:12:45 +08:00
|
|
|
|
2019-09-28 00:17:56 +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 \
|
2019-09-28 00:17:56 +08:00
|
|
|
--with-gxx-include-dir=/tools/$LFS_TGT/include/c++/$version
|
2018-12-01 00:12:45 +08:00
|
|
|
make
|
|
|
|
make install
|
2019-09-28 00:17:56 +08:00
|
|
|
}
|