X-Git-Url: https://git.gag.com/?p=fw%2Fcortex-toolchain;a=blobdiff_plain;f=summon-arm-toolchain;h=d0050ef835e4559a49c1b66c2062e2be15e98316;hp=aa08b017af7210a55cc04a7183deff40ad8bf424;hb=111117adfb7a04343df91e473171667af6576be2;hpb=687eb52b6cbe665a0b7e9d327313c91195b6ccb7 diff --git a/summon-arm-toolchain b/summon-arm-toolchain index aa08b01..d0050ef 100755 --- a/summon-arm-toolchain +++ b/summon-arm-toolchain @@ -285,10 +285,19 @@ fi if [ ! -e ${STAMPS}/${GCC}-${NEWLIB}.build ]; then unpack ${GCC} unpack ${NEWLIB} + log "Adding newlib symlink to gcc" - ln -s `pwd`/${NEWLIB}/newlib ${GCC} + ln -f -s `pwd`/${NEWLIB}/newlib ${GCC} log "Adding libgloss symlink to gcc" - ln -s `pwd`/${NEWLIB}/libgloss ${GCC} + ln -f -s `pwd`/${NEWLIB}/libgloss ${GCC} + + if [ ${DEFAULT_TO_CORTEX_M3} == 0 ] ; then + log "Patching gcc to add multilib support" + cd ${GCC} + patch -p0 -i ../patches/patch-gcc-config-arm-t-arm-elf.diff + cd .. + fi + cd build log "Configuring ${GCC} and ${NEWLIB}" ../${GCC}/configure --target=${TARGET} \