summaryrefslogtreecommitdiff
path: root/6-build-gcc-stage-2.sh
diff options
context:
space:
mode:
Diffstat (limited to '6-build-gcc-stage-2.sh')
-rw-r--r--6-build-gcc-stage-2.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/6-build-gcc-stage-2.sh b/6-build-gcc-stage-2.sh
new file mode 100644
index 0000000..15e5e3c
--- /dev/null
+++ b/6-build-gcc-stage-2.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+set -e
+source ./common
+export PATH="$prefix_dir/bin:${PATH:+:${PATH}}"
+
+mkdir -p build/gcc-$gcc_ver-stage-2
+cd build/gcc-$gcc_ver-stage-2
+echo "Configuring gcc-${gcc_ver} (stage 2)"
+../../unpacked/gcc-$gcc_ver/configure --prefix=$prefix_dir --target=$target --enable-languages=c,c++ >configure-stage-2.log 2>&1
+if [ ! $? ]; then less configure-stage-2.log; exit; fi
+echo "Building gcc-$gcc_ver (stage 2)"
+make -j10 all-gcc >build-stage-2.log 2>&1
+if [ ! $? ]; then less build-stage-2.log; exit; fi
+echo "Installing gcc-$gcc_ver (stage 2)"
+make install-gcc >install-stage-2.log 2>&1
+if [ ! $? ]; then less install-stage-2.log; exit; fi
+echo "Done with gcc-$gcc_ver (stage 2)"