From ef4026d7f55126e79c8e5038a6dc6e18f42b465c Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Fri, 11 May 2018 23:31:31 +0100 Subject: [PATCH] clang as CC breaks newlib build --- dkppc/scripts/build-gcc.sh | 8 ++++++++ 1 file changed, 8 insertions(+) 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 #---------------------------------------------------------------------------------