Fix setup-binutils and setup-gcc

This commit is contained in:
apio 2022-10-02 19:58:52 +02:00
parent db9e1ba17c
commit ee31a3458d
2 changed files with 12 additions and 0 deletions

View File

@ -13,6 +13,9 @@ if [ ! -f toolchain/tarballs/binutils-$LUNA_BINUTILS_VERSION_REQUIRED.tar.xz ];
wget -Otoolchain/tarballs/binutils-$LUNA_BINUTILS_VERSION_REQUIRED.tar.xz https://ftp.gnu.org/gnu/binutils/binutils-$LUNA_BINUTILS_VERSION_REQUIRED.tar.xz
fi
rm -rf toolchain/build/binutils
rm -rf toolchain/build/binutils-$LUNA_BINUTILS_VERSION_REQUIRED
echo Extracting Binutils...
tar xf toolchain/tarballs/binutils-$LUNA_BINUTILS_VERSION_REQUIRED.tar.xz -C toolchain/build/
@ -31,6 +34,9 @@ mkdir -p toolchain/build/binutils
cd toolchain/build/binutils
unset CC
unset CXX
../binutils-$LUNA_BINUTILS_VERSION_REQUIRED/configure --prefix="$BUILD_PREFIX" --target=$BUILD_TARGET --disable-nls --with-sysroot=$BUILD_SYSROOT --disable-werror
echo Building Binutils...

View File

@ -21,6 +21,9 @@ if [ ! -f toolchain/tarballs/gcc-$LUNA_GCC_VERSION_REQUIRED.tar.xz ]; then
wget -Otoolchain/tarballs/gcc-$LUNA_GCC_VERSION_REQUIRED.tar.xz https://ftp.gnu.org/gnu/gcc/gcc-$LUNA_GCC_VERSION_REQUIRED/gcc-$LUNA_GCC_VERSION_REQUIRED.tar.xz
fi
rm -rf toolchain/build/gcc
rm -rf toolchain/build/gcc-$LUNA_GCC_VERSION_REQUIRED
echo Extracting GCC...
tar xf toolchain/tarballs/gcc-$LUNA_GCC_VERSION_REQUIRED.tar.xz -C toolchain/build/
@ -39,6 +42,9 @@ mkdir -p toolchain/build/gcc
cd toolchain/build/gcc
unset CC
unset CXX
../gcc-$LUNA_GCC_VERSION_REQUIRED/configure --prefix="$BUILD_PREFIX" --target=$BUILD_TARGET --disable-nls --with-sysroot=$BUILD_SYSROOT --enable-languages=c,c++ --without-headers
echo Building GCC...