diff options
| author | Oxore <oxore@protonmail.com> | 2022-05-16 08:42:31 +0300 |
|---|---|---|
| committer | Oxore <oxore@protonmail.com> | 2022-05-16 08:42:31 +0300 |
| commit | 03715a204633964e52549c66f72d9a9d63088ba8 (patch) | |
| tree | f5acda1efbb26ccad8058de8ce5a64615c74154d /4-build-gcc-stage-1.sh | |
Initial commit
Diffstat (limited to '4-build-gcc-stage-1.sh')
| -rw-r--r-- | 4-build-gcc-stage-1.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/4-build-gcc-stage-1.sh b/4-build-gcc-stage-1.sh new file mode 100644 index 0000000..40577ec --- /dev/null +++ b/4-build-gcc-stage-1.sh @@ -0,0 +1,16 @@ +#!/bin/sh +set -e +source ./common + +mkdir -p build/gcc-$gcc_ver +cd build/gcc-$gcc_ver +echo "Configuring gcc-${gcc_ver} (stage 1)" +../../unpacked/gcc-$gcc_ver/configure --prefix=$prefix_dir --target=$target --disable-multilib --enable-languages=c,c++ >configure.log 2>&1 +if [ ! $? ]; then less configure.log; exit; fi +echo "Building gcc-$gcc_ver (stage 1)" +make -j10 all-gcc >build.log 2>&1 +if [ ! $? ]; then less build.log; exit; fi +echo "Installing gcc-$gcc_ver (stage 1)" +make install-gcc >install.log 2>&1 +if [ ! $? ]; then less install.log; exit; fi +echo "Done with gcc-$gcc_ver (stage 1)" |
