aboutsummaryrefslogtreecommitdiff
path: root/devel/zpu-gcc/files/patch-build.sh
blob: 40b658f17edb8453243cc825771f654b1ae11fcb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- build.sh.orig	2012-10-11 18:40:23.000000000 -0500
+++ build.sh	2012-10-19 19:35:57.000000000 -0500
@@ -1,18 +1,19 @@
+export CC=cc
 set -e
-rm -rf build
-mkdir build
-cd build
-../binutils/configure --target=zpu-elf --prefix=`pwd`/../install
-make
-make install
-cd ..
+#rm -rf build
+#mkdir build
+#cd build
+#../binutils/configure --target=zpu-elf --prefix=%%PREFIX%%/zpu
+#gmake
+#gmake install
+#cd ..
 
-export PATH=`pwd`/install/bin:$PATH
+export PATH=/usr/local/zpu/bin:$PATH
 rm -rf gccbuild
 mkdir gccbuild
 cd gccbuild
-#../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
-../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
-make
-make install
+##../gcc/configure --target=zpu-elf --prefix=%%PREFIX%%/zpu --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
+../gcc/configure --target=zpu-elf --prefix=%%PREFIX%%/zpu --infodir=%%PREFIX%%/share/info/zpuc --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
+%%MAKE_CMD%%
+#gmake install