diff options
| author | Oxore <oxore@protonmail.com> | 2022-05-16 19:11:17 +0300 |
|---|---|---|
| committer | Oxore <oxore@protonmail.com> | 2022-05-16 19:11:17 +0300 |
| commit | 4ee9cc06c66711d8976065a8d9633023ff509c5e (patch) | |
| tree | 120c3a4b0c47f33b5954b291cd883cf5e602652a /6-build-gcc-stage-2.sh | |
| parent | 03715a204633964e52549c66f72d9a9d63088ba8 (diff) | |
Add second GCC stage (still does not work)
Diffstat (limited to '6-build-gcc-stage-2.sh')
| -rw-r--r-- | 6-build-gcc-stage-2.sh | 17 |
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)" |
