From: Matthias Rampke Date: Sat, 13 Aug 2011 17:05:49 +0000 (+0200) Subject: use newlib options from jsnyder's arm-eabi-toolchain X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=summon-arm-toolchain.git;a=commitdiff_plain;h=77dafadeaa862f174694934e4aeb9cfeee1be843 use newlib options from jsnyder's arm-eabi-toolchain --- diff --git a/summon-arm-toolchain b/summon-arm-toolchain index 7ad12eb..a4d501e 100755 --- a/summon-arm-toolchain +++ b/summon-arm-toolchain @@ -338,6 +338,8 @@ if [ ! -e ${STAMPS}/${NEWLIB}.build ]; then unpack ${NEWLIB} cd build log "Configuring ${NEWLIB}" + # configuration options and flags partially + # from https://github.com/jsnyder/arm-eabi-toolchain ../${NEWLIB}/configure --target=${TARGET} \ --prefix=${PREFIX} \ --enable-interwork \ @@ -347,9 +349,13 @@ if [ ! -e ${STAMPS}/${NEWLIB}.build ]; then --disable-nls \ --disable-werror \ --disable-newlib-supplied-syscalls \ + --disable-shared \ + --disable-nls \ + --disable-libgloss \ --with-float=soft log "Building ${NEWLIB}" - make ${MAKEFLAGS} CFLAGS_FOR_TARGET="-msoft-float" CCASFLAGS="-msoft-float" + NEWLIB_FLAGS="-ffunction-sections -fdata-sections -DPREFER_SIZE_OVER_SPEED -D__OPTIMIZE_SIZE__ -Os -fomit-frame-pointer -fno-unroll-loops -D__BUFSIZ__=256 -mabi=aapcs" + make ${MAKEFLAGS} CFLAGS_FOR_TARGET="${NEWLIB_FLAGS}" CCASFLAGS="${NEWLIB_FLAGS}" install ${NEWLIB} install cd .. log "Cleaning up ${NEWLIB}"