changeset 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 19cabe7c8e08
children 05dc91d011a6
files toolchain/build+install.sh
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/toolchain/build+install.sh	Sun Oct 28 23:20:00 2018 +0000
+++ b/toolchain/build+install.sh	Tue Oct 30 00:12:26 2018 +0000
@@ -29,6 +29,8 @@
 
 set -ex
 
+BASEDIR=`pwd`
+
 target_args="--target=arm-elf"
 
 # binutils come first
@@ -64,7 +66,7 @@
 	--enable-interwork --enable-multilib \
 	--with-cpu=arm7tdmi --with-float=soft \
 	--enable-languages=c --with-newlib \
-	--with-headers=`pwd`/newlib-${newlib_version}/newlib/libc/include \
+	--with-headers=$BASEDIR/newlib-${newlib_version}/newlib/libc/include \
 	--with-system-zlib --disable-shared \
 	--disable-nls
 make all-gcc