Update danio_gcc.sh
This commit is contained in:
+4
-15
@@ -68,18 +68,9 @@ fi
|
|||||||
) || exit 1
|
) || exit 1
|
||||||
|
|
||||||
if ! (
|
if ! (
|
||||||
(cd gcc-*; contrib/download_prerequisites)
|
(cd gcc-*; contrib/download_prerequisites; ln -svf ../newlib-${newlib_version}/newlib newlib; ln -svf ../newlib-${newlib_version}/libgloss libgloss)
|
||||||
mkdir -pv build-gcc
|
mkdir -pv build-gcc
|
||||||
(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_version}/newlib/libc/include" --enable-multilib --enable-multiarch)
|
(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 --enable-multilib --enable-multiarch)
|
||||||
)
|
|
||||||
then
|
|
||||||
echo "STAGE=${TARGET}" > .error
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! (
|
|
||||||
make -C build-gcc -j${nproc}
|
|
||||||
make -C build-gcc install
|
|
||||||
)
|
)
|
||||||
then
|
then
|
||||||
echo "STAGE=${TARGET}" > .error
|
echo "STAGE=${TARGET}" > .error
|
||||||
@@ -87,10 +78,8 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if (
|
if (
|
||||||
mkdir -pv build-newlib
|
make -C build-gcc -j${nproc}
|
||||||
(cd build-newlib; ../newlib-*/configure --target="${TARGET}" --prefix="${PREFIX}")
|
make -C build-gcc install
|
||||||
make -C build-newlib -j${nproc}
|
|
||||||
make -C build-newlib install
|
|
||||||
)
|
)
|
||||||
then
|
then
|
||||||
find ${PREFIX} | xargs file | grep "ELF" | grep "executable" | cut -f 1 -d ":" | xargs strip -S 2>/dev/null
|
find ${PREFIX} | xargs file | grep "ELF" | grep "executable" | cut -f 1 -d ":" | xargs strip -S 2>/dev/null
|
||||||
|
|||||||
Reference in New Issue
Block a user