Update 01_build_src.sh

This commit is contained in:
superconvert 2022-07-27 00:50:27 +08:00 committed by GitHub
parent 544d9428ee
commit 1f7afb86d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,8 +107,8 @@ fi
if [ ! -d "libgcc_install" ]; then if [ ! -d "libgcc_install" ]; then
mkdir -pv libgcc_install && cd gcc-7.5.0 mkdir -pv libgcc_install && cd gcc-7.5.0
./contrib/download_prerequisites ./contrib/download_prerequisites
./configure --prefix=${glibc_install} --enable-languages=c,c++ --disable-multilib --disable-static --disable-libquadmath --enable-shared ./configure --prefix=${libgcc_install} --enable-languages=c,c++ --disable-multilib --disable-static --disable-libquadmath --enable-shared
CFLAGS="-L${glibc_install}/lib $CFLAGS" make -j8 all-gcc && make -j8 && make install -j8 DESTDIR=${libgcc_install} CFLAGS="-L${glibc_install}/lib $CFLAGS" make -j8 all-gcc && make -j8 && make install -j8
cd .. cd ..
fi fi