Skip to content

Commit f1d8ff0

Browse files
committed
optionally download gcc prerequisites
1 parent ae56dba commit f1d8ff0

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

build-devkit.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,14 @@ mkdir -p $BUILDDIR
224224
cd $BUILDDIR
225225

226226
extract_and_patch binutils $BINUTILS_VER xz
227+
227228
extract_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+
228235
extract_and_patch newlib $NEWLIB_VER gz
229236

230237
if [ $VERSION -eq 2 ]; then extract_and_patch binutils $MN_BINUTILS_VER bz2; fi

config.sh.sample

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff 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
#---------------------------------------------------------------------------------
3738
BUILD_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
#---------------------------------------------------------------------------------

0 commit comments

Comments
 (0)