This commit is contained in:
Daniel
2018-10-12 07:20:43 +02:00
committed by GitHub
parent 04f46f874d
commit 22e95b4eef
2 changed files with 27 additions and 23 deletions
+6 -11
View File
@@ -33,6 +33,7 @@ if ! (
make -C build-binutils -j${nproc} install
)
then
echo "STAGE=${TARGET}" > .error
exit 1
fi
@@ -57,25 +58,19 @@ fi
if ! (
(cd gcc-*; contrib/download_prerequisites)
mkdir -pv build-gcc
(cd build-gcc; ../gcc-*/configure --target="${TARGET}" --prefix="${PREFIX}" --disable-lto --disable-nls --disable-werror --enable-languages=all --enable-multilib --enable-multiarch --with-pkgversion="*DANiO* T00LCHAIN" --with-system-zlib --enable-obsolete --with-newlib --with-headers="../newlib-*/newlib/libc/include")
(cd build-gcc; ../gcc-*/configure --target="${TARGET}" --prefix="${PREFIX}" --disable-lto --disable-nls --disable-werror --enable-languages=all --with-pkgversion="*DANiO* T00LCHAIN" --with-system-zlib --enable-obsolete --with-newlib --with-headers="../newlib-*/newlib/libc/include" --without-libssp )#--enable-multilib --enable-multiarch
)
then
echo "STAGE=${TARGET}" > .error
exit 1
fi
maybe_try_this()
{
make -C build-gcc all-gcc -j${nproc} || return 1
make -C build-gcc all-target-libgcc -j${nproc} || return 1
make -C build-gcc install-gcc -j${nproc} || return 1
make -C build-gcc install-target-libgcc -j${nproc} || return 1
}
if ! (
make -C build-gcc -j${nproc} || maybe_try_this
make -C build-gcc install -j${nproc} || maybe_try_this
make -C build-gcc -j${nproc}
make -C build-gcc install -j${nproc}
)
then
echo "STAGE=${TARGET}" > .error
exit 1
fi