fixed bash/dash/sh issue (Ubuntu)
[zpugcc/jano.git] / toolchain / build.sh
blob5831250f74f447b43422208d7f3f3cd175ea89b9
1 set -e
2 rm -rf build
3 mkdir build
4 cd build
5 ../binutils/configure --target=zpu-elf --prefix=`pwd`/../install
6 make
7 make install
8 cd ..
10 export PATH=`pwd`/install/bin:$PATH
11 rm -rf gccbuild
12 mkdir gccbuild
13 cd gccbuild
14 #../gcc/configure --target=zpu-elf --prefix=`pwd`/../install --enable-languages=c,c++ --with-gnu-as --with-gnu-ld --with-newlib --disable-shared --enable-newlib -v --enable-checking=misc,tree,rtl,rtlflag,gc,gcac,fold --disable-multilib --disable-threads --enable-sjlj-exceptions --enable-libstdcxx-allocator=malloc
15 ../gcc/configure --target=zpu-elf --prefix=`pwd`/../install --enable-languages=c --with-gnu-as --with-gnu-ld --with-newlib --disable-shared --enable-newlib -v --enable-checking=misc,tree,rtl,rtlflag,gc,gcac,fold --disable-multilib --disable-threads --enable-sjlj-exceptions --enable-libstdcxx-allocator=malloc
16 make
17 make install