Skip to content

Commit 0962757

Browse files
committed
fix newlib cross build
1 parent 5bb8680 commit 0962757

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

dka64/scripts/build-gcc.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ fi
8686
unset CFLAGS
8787
cd $BUILDDIR
8888

89+
OLD_CC=$CC
90+
OLDCXX=$CXX
91+
unset CC
92+
unset CXX
93+
8994
#---------------------------------------------------------------------------------
9095
# build and install newlib
9196
#---------------------------------------------------------------------------------
@@ -118,6 +123,9 @@ then
118123
touch installed-newlib
119124
fi
120125

126+
export CC=$OLD_CC
127+
export CXX=$OLD_CXX
128+
121129
#---------------------------------------------------------------------------------
122130
# build and install the final compiler
123131
#---------------------------------------------------------------------------------

0 commit comments

Comments
 (0)