Skip to content

Commit ef4026d

Browse files
committed
clang as CC breaks newlib build
1 parent 3208e8a commit ef4026d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

dkppc/scripts/build-gcc.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ cd $target/newlib
125125
unset CFLAGS
126126
unset LDFLAGS
127127

128+
OLD_CC=$CC
129+
OLD_CXX=$CXX
130+
unset CC
131+
unset CXX
132+
128133
if [ ! -f configured-newlib ]
129134
then
130135
CFLAGS_FOR_TARGET="-O2 -ffunction-sections -fdata-sections" \
@@ -148,6 +153,9 @@ then
148153
touch installed-newlib
149154
fi
150155

156+
export CC=$OLD_CC
157+
export CXX=$OLD_CXX
158+
151159
#---------------------------------------------------------------------------------
152160
# build and install the final compiler
153161
#---------------------------------------------------------------------------------

0 commit comments

Comments
 (0)