diff --git a/tools/build_newlib.sh b/tools/build_newlib.sh index 22aa604fa..bd5199286 100755 --- a/tools/build_newlib.sh +++ b/tools/build_newlib.sh @@ -56,7 +56,8 @@ INSTALL="${WORKDIR}/arm_none_eabi_install" mkdir -p "${BUILD}" "${INSTALL}" cd "${BUILD}" -CFLAGS_FOR_TARGET="-ffunction-sections -fdata-sections -fshort-wchar -DPREFER_SIZE_OVER_SPEED -mcpu=${TARGET_CPU} -mthumb -mlittle-endian" \ +CC_FOR_TARGET="clang" \ +CFLAGS_FOR_TARGET="--target=arm-none-eabi -ffunction-sections -fdata-sections -fshort-wchar -DPREFER_SIZE_OVER_SPEED -mcpu=${TARGET_CPU} -mthumb -mlittle-endian -fropi -frwpi" \ ../configure \ `# Setup` \ --host=x86_64-linux-gnu `# Host` \ @@ -64,6 +65,7 @@ CFLAGS_FOR_TARGET="-ffunction-sections -fdata-sections -fshort-wchar -DPREFER_SI --disable-multilib `# Building only one library` \ --prefix="${INSTALL}" `# Installation prefix` \ `# Options` \ + --disable-libgloss `# unused library in our sdk` \ --disable-silent-rules `# verbose build output (undo: "make V=0")` \ --disable-dependency-tracking `# speeds up one-time build` \ --enable-newlib-reent-small `# enable small reentrant struct support` \