optionally download gcc prerequisites

This commit is contained in:
Dave Murphy 2026-01-07 12:53:45 +00:00
parent ae56dba8d0
commit f1d8ff0e21
No known key found for this signature in database
GPG Key ID: F7FD5492264BB9D0
2 changed files with 16 additions and 0 deletions

View File

@ -224,7 +224,14 @@ mkdir -p $BUILDDIR
cd $BUILDDIR
extract_and_patch binutils $BINUTILS_VER xz
extract_and_patch gcc $GCC_VER xz
if [ "$GCC_DOWNLOAD_PREREQS" != "0" ] && [ ! -f downloaded_prereqs ]; then
cd gcc-${GCC_VER}
./contrib/download_prerequisites && touch downloaded_prereqs
cd ..
fi
extract_and_patch newlib $NEWLIB_VER gz
if [ $VERSION -eq 2 ]; then extract_and_patch binutils $MN_BINUTILS_VER bz2; fi

View File

@ -29,6 +29,7 @@ BUILD_DKPRO_PACKAGE=0
#---------------------------------------------------------------------------------
#BUILD_DKPRO_SKIP_CRTLS=1
#---------------------------------------------------------------------------------
# Automated script execution
#---------------------------------------------------------------------------------
# 0: Ask to delete build folders & patched sources
@ -36,6 +37,14 @@ BUILD_DKPRO_PACKAGE=0
#---------------------------------------------------------------------------------
BUILD_DKPRO_AUTOMATED=0
#---------------------------------------------------------------------------------
# Download prerequisites before building gcc
#---------------------------------------------------------------------------------
# 0: use pre-compiled prereqs
# 1: run included download script
#---------------------------------------------------------------------------------
GCC_DOWNLOAD_PREREQS=0
#---------------------------------------------------------------------------------
# set OSX SDK path if needed
#---------------------------------------------------------------------------------