clang as CC breaks newlib build

This commit is contained in:
Dave Murphy
2018-05-11 23:31:31 +01:00
parent 3208e8a40f
commit ef4026d7f5

View File

@@ -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
#---------------------------------------------------------------------------------