Fix setup-binutils and setup-gcc
This commit is contained in:
parent
db9e1ba17c
commit
ee31a3458d
@ -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
|
wget -Otoolchain/tarballs/binutils-$LUNA_BINUTILS_VERSION_REQUIRED.tar.xz https://ftp.gnu.org/gnu/binutils/binutils-$LUNA_BINUTILS_VERSION_REQUIRED.tar.xz
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
rm -rf toolchain/build/binutils
|
||||||
|
rm -rf toolchain/build/binutils-$LUNA_BINUTILS_VERSION_REQUIRED
|
||||||
|
|
||||||
echo Extracting Binutils...
|
echo Extracting Binutils...
|
||||||
|
|
||||||
tar xf toolchain/tarballs/binutils-$LUNA_BINUTILS_VERSION_REQUIRED.tar.xz -C toolchain/build/
|
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
|
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
|
../binutils-$LUNA_BINUTILS_VERSION_REQUIRED/configure --prefix="$BUILD_PREFIX" --target=$BUILD_TARGET --disable-nls --with-sysroot=$BUILD_SYSROOT --disable-werror
|
||||||
|
|
||||||
echo Building Binutils...
|
echo Building Binutils...
|
||||||
|
@ -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
|
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
|
fi
|
||||||
|
|
||||||
|
rm -rf toolchain/build/gcc
|
||||||
|
rm -rf toolchain/build/gcc-$LUNA_GCC_VERSION_REQUIRED
|
||||||
|
|
||||||
echo Extracting GCC...
|
echo Extracting GCC...
|
||||||
|
|
||||||
tar xf toolchain/tarballs/gcc-$LUNA_GCC_VERSION_REQUIRED.tar.xz -C toolchain/build/
|
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
|
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
|
../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...
|
echo Building GCC...
|
||||||
|
Loading…
Reference in New Issue
Block a user