blob: ab3549769029b16c5adbd692e78c742ace625c7d (
plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
#!/bin/sh
source ./common
options_do_configure=1
options_do_build=1
options_do_install=1
if [ "$0" == "-i" ]; then
options_do_configure=
options_do_build=
options_do_install=1
fi
ln -Tsfrv unpacked/mpc-$mpc_ver unpacked/gcc-$gcc_ver/mpc
ln -Tsfrv unpacked/mpfr-$mpfr_ver unpacked/gcc-$gcc_ver/mpfr
ln -Tsfrv unpacked/isl-$isl_ver unpacked/gcc-$gcc_ver/isl
mkdir -p build/gcc-$gcc_ver
cd build/gcc-$gcc_ver
if [ -n "$options_do_configure" ]; then
echo "Configuring gcc-${gcc_ver} (stage 1)"
../../unpacked/gcc-$gcc_ver/configure \
--prefix=$prefix_dir \
--target=$target \
--with-newlib \
--with-gnu-as \
--with-gnu-ld \
--enable-lto \
--enable-linker-build-id \
--disable-libmudflap \
--disable-libgomp \
--disable-libssp \
--disable-libstdcxx-pch \
--enable-multiarch \
--enable-soft-float \
--enable-languages=c,c++ \
--with-headers=../../unpacked/newlib-$newlib_ver/newlib/libc/include \
--disable-shared \
>configure-stage-1.log 2>&1
ret=$?
if [ $ret -ne 0 ]; then less configure-stage-1.log; exit 1; fi
fi
if [ -n "$options_do_build" ]; then
echo "Building gcc-$gcc_ver (stage 1)"
make -j$jobs all >build-stage-1.log 2>&1
ret=$?
if [ $ret -ne 0 ]; then less build-stage-1.log; exit 1; fi
fi
if [ -n "$options_do_install" ]; then
echo "Installing gcc-$gcc_ver (stage 1)"
make install >install-stage-1.log 2>&1
ret=$?
if [ $ret -ne 0 ]; then less install-stage-1.log; exit 1; fi
fi
if [ -z "$options_do_configure$options_do_build$options_do_install" ]; then
echo "Nothing to be done for gcc-$gcc_ver (stage 1)"
else
echo "Done with gcc-$gcc_ver (stage 1)"
fi
|