diff --git a/dkppc/scripts/build-gcc.sh b/dkppc/scripts/build-gcc.sh index bcbed56..462ff77 100755 --- a/dkppc/scripts/build-gcc.sh +++ b/dkppc/scripts/build-gcc.sh @@ -125,6 +125,11 @@ cd $target/newlib unset CFLAGS unset LDFLAGS +OLD_CC=$CC +OLD_CXX=$CXX +unset CC +unset CXX + if [ ! -f configured-newlib ] then CFLAGS_FOR_TARGET="-O2 -ffunction-sections -fdata-sections" \ @@ -148,6 +153,9 @@ then touch installed-newlib fi +export CC=$OLD_CC +export CXX=$OLD_CXX + #--------------------------------------------------------------------------------- # build and install the final compiler #---------------------------------------------------------------------------------