comparison toolchain/build+install.sh @ 428:2beb5bae0796

toolchain/build+install.sh: fixed ancient bug wherein the path for newlib headers passed to gcc's configure was off by one directory level. The bug was reported by Das Signal.
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 30 Oct 2018 00:12:26 +0000
parents e7502631a0f9
children
comparison
equal deleted inserted replaced
427:19cabe7c8e08 428:2beb5bae0796
26 echo "usage: $0 path-to-tarballs path-to-install" 26 echo "usage: $0 path-to-tarballs path-to-install"
27 exit 1 27 exit 1
28 fi 28 fi
29 29
30 set -ex 30 set -ex
31
32 BASEDIR=`pwd`
31 33
32 target_args="--target=arm-elf" 34 target_args="--target=arm-elf"
33 35
34 # binutils come first 36 # binutils come first
35 tar xjf $1/binutils-2.21.1a.tar.bz2 37 tar xjf $1/binutils-2.21.1a.tar.bz2
62 cd gcc-build 64 cd gcc-build
63 ../gcc-${gcc_version}/configure --prefix=$2 ${target_args} \ 65 ../gcc-${gcc_version}/configure --prefix=$2 ${target_args} \
64 --enable-interwork --enable-multilib \ 66 --enable-interwork --enable-multilib \
65 --with-cpu=arm7tdmi --with-float=soft \ 67 --with-cpu=arm7tdmi --with-float=soft \
66 --enable-languages=c --with-newlib \ 68 --enable-languages=c --with-newlib \
67 --with-headers=`pwd`/newlib-${newlib_version}/newlib/libc/include \ 69 --with-headers=$BASEDIR/newlib-${newlib_version}/newlib/libc/include \
68 --with-system-zlib --disable-shared \ 70 --with-system-zlib --disable-shared \
69 --disable-nls 71 --disable-nls
70 make all-gcc 72 make all-gcc
71 make install-gcc 73 make install-gcc
72 cd .. 74 cd ..