File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -224,7 +224,14 @@ mkdir -p $BUILDDIR
224224cd $BUILDDIR
225225
226226extract_and_patch binutils $BINUTILS_VER xz
227+
227228extract_and_patch gcc $GCC_VER xz
229+ if [ " $GCC_DOWNLOAD_PREREQS " != " 0" ] && [ ! -f downloaded_prereqs ]; then
230+ cd gcc-${GCC_VER}
231+ ./contrib/download_prerequisites && touch downloaded_prereqs
232+ cd ..
233+ fi
234+
228235extract_and_patch newlib $NEWLIB_VER gz
229236
230237if [ $VERSION -eq 2 ]; then extract_and_patch binutils $MN_BINUTILS_VER bz2; fi
Original file line number Diff line number Diff line change @@ -29,13 +29,22 @@ BUILD_DKPRO_PACKAGE=0
2929# ---------------------------------------------------------------------------------
3030# BUILD_DKPRO_SKIP_CRTLS=1
3131
32+ # ---------------------------------------------------------------------------------
3233# Automated script execution
3334# ---------------------------------------------------------------------------------
3435# 0: Ask to delete build folders & patched sources
3536# 1: Use defaults, don't pause for answers
3637# ---------------------------------------------------------------------------------
3738BUILD_DKPRO_AUTOMATED=0
3839
40+ # ---------------------------------------------------------------------------------
41+ # Download prerequisites before building gcc
42+ # ---------------------------------------------------------------------------------
43+ # 0: use pre-compiled prereqs
44+ # 1: run included download script
45+ # ---------------------------------------------------------------------------------
46+ GCC_DOWNLOAD_PREREQS=0
47+
3948# ---------------------------------------------------------------------------------
4049# set OSX SDK path if needed
4150# ---------------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments