修訂 | 0396be28581b1c7764226276cff6540caff38804 (tree) |
---|---|
時間 | 2012-03-29 23:33:50 |
作者 | matsuand <matsuand@user...> |
Commiter | matsuand |
[LFS] SVN-20120328, chapter 5.
@@ -26,13 +26,19 @@ START=`date +'%Y/%m/%d %H:%M:%S.%N'` | ||
26 | 26 | |
27 | 27 | cd $TARGETDIR |
28 | 28 | |
29 | +echo \ \ Patching... | |
30 | +patch -Np1 -i $DLD/binutils-2.22-build_fix-1.patch \ | |
31 | + 1> $LOG/$CHAP.$TARGET.0_patch.log 2>&1 || exit 1 | |
32 | + | |
29 | 33 | mkdir -v ../binutils-build |
30 | 34 | cd ../binutils-build |
31 | 35 | |
32 | 36 | echo \ \ Configuring... |
33 | 37 | ../binutils-$VER/configure \ |
34 | - --target=$LFS_TGT --prefix=/tools \ | |
35 | - --disable-nls --disable-werror \ | |
38 | + --target=$LFS_TGT \ | |
39 | + --prefix=/tools \ | |
40 | + --disable-nls \ | |
41 | + --disable-werror \ | |
36 | 42 | 1> $LOG/$CHAP.$TARGET.1_conf.log 2>&1 || exit 1 |
37 | 43 | |
38 | 44 | echo \ \ Making... |
@@ -3,7 +3,7 @@ | ||
3 | 3 | THISFILE=`basename $0` |
4 | 4 | CHAP=`echo $THISFILE | sed s/\.sh//` |
5 | 5 | |
6 | -VER=4.6.3 | |
6 | +VER=4.7.0 | |
7 | 7 | TARGET=gcc-$VER |
8 | 8 | TARGETBALL=$TARGET.tar.bz2 |
9 | 9 | TARGETDIR=$TARGET |
@@ -38,29 +38,25 @@ mv -v mpc-$VER_mpc mpc | ||
38 | 38 | |
39 | 39 | START=`date +'%Y/%m/%d %H:%M:%S.%N'` |
40 | 40 | |
41 | -#echo \ \ Patching... | |
42 | -#patch -Np1 -i $DLD/gcc-$VER-cross_compile-1.patch \ | |
43 | -# 1> $LOG/$CHAP.$TARGET.0_patch.log 2>&1 || exit 1 | |
44 | - | |
45 | 41 | mkdir -v ../gcc-build |
46 | 42 | cd ../gcc-build |
47 | 43 | |
48 | 44 | echo \ \ Configuring... |
49 | -../gcc-$VER/configure \ | |
50 | - --target=$LFS_TGT \ | |
51 | - --prefix=/tools \ | |
52 | - --disable-nls \ | |
53 | - --disable-shared \ | |
54 | - --disable-multilib \ | |
55 | - --disable-decimal-float \ | |
56 | - --disable-threads \ | |
57 | - --disable-libmudflap \ | |
58 | - --disable-libssp \ | |
59 | - --disable-libgomp \ | |
60 | - --disable-libquadmath \ | |
61 | - --enable-languages=c \ | |
62 | - --without-ppl \ | |
63 | - --without-cloog \ | |
45 | +../gcc-$VER/configure \ | |
46 | + --target=$LFS_TGT \ | |
47 | + --prefix=/tools \ | |
48 | + --disable-nls \ | |
49 | + --disable-shared \ | |
50 | + --disable-multilib \ | |
51 | + --disable-decimal-float \ | |
52 | + --disable-threads \ | |
53 | + --disable-libmudflap \ | |
54 | + --disable-libssp \ | |
55 | + --disable-libgomp \ | |
56 | + --disable-libquadmath \ | |
57 | + --enable-languages=c \ | |
58 | + --without-ppl \ | |
59 | + --without-cloog \ | |
64 | 60 | --with-mpfr-include=$(pwd)/../gcc-$VER/mpfr/src \ |
65 | 61 | --with-mpfr-lib=$(pwd)/mpfr/src/.libs \ |
66 | 62 | 1> $LOG/$CHAP.$TARGET.1_conf.log 2>&1 || exit 1 |
@@ -3,7 +3,7 @@ | ||
3 | 3 | THISFILE=`basename $0` |
4 | 4 | CHAP=`echo $THISFILE | sed s/\.sh//` |
5 | 5 | |
6 | -VER=3.2.11 | |
6 | +VER=3.3 | |
7 | 7 | TARGET=linux-$VER |
8 | 8 | TARGETBALL=$TARGET.tar.xz |
9 | 9 | TARGETDIR=$TARGET |
@@ -3,9 +3,9 @@ | ||
3 | 3 | THISFILE=`basename $0` |
4 | 4 | CHAP=`echo $THISFILE | sed s/\.sh//` |
5 | 5 | |
6 | -VER=2.14.1 | |
6 | +VER=2.15 | |
7 | 7 | TARGET=glibc-$VER |
8 | -TARGETBALL=$TARGET.tar.bz2 | |
8 | +TARGETBALL=$TARGET.tar.xz | |
9 | 9 | TARGETDIR=$TARGET |
10 | 10 | |
11 | 11 | echo $CHAP: $TARGET |
@@ -26,11 +26,13 @@ START=`date +'%Y/%m/%d %H:%M:%S.%N'` | ||
26 | 26 | |
27 | 27 | cd $TARGETDIR |
28 | 28 | |
29 | +sed -i 's#$ac_includes_default#\n\n#' sysdeps/i386/configure | |
30 | + | |
31 | +sed -i 's#/var/db#/tools/var/db#' Makeconfig | |
32 | + | |
29 | 33 | echo \ \ Patching... |
30 | 34 | patch -Np1 -i $DLD/glibc-$VER-gcc_fix-1.patch \ |
31 | 35 | 1> $LOG/$CHAP.$TARGET.0_patch.log 2>&1 || exit 1 |
32 | -patch -Np1 -i $DLD/glibc-$VER-cpuid-1.patch \ | |
33 | - 1>> $LOG/$CHAP.$TARGET.0_patch.log 2>&1 || exit 1 | |
34 | 36 | |
35 | 37 | mkdir -v ../glibc-build |
36 | 38 | cd ../glibc-build |
@@ -40,11 +42,17 @@ case `uname -m` in | ||
40 | 42 | esac |
41 | 43 | |
42 | 44 | echo \ \ Configuring... |
43 | -../glibc-$VER/configure --prefix=/tools \ | |
44 | - --host=$LFS_TGT --build=$(../glibc-$VER/scripts/config.guess) \ | |
45 | - --disable-profile --enable-add-ons \ | |
46 | - --enable-kernel=2.6.25 --with-headers=/tools/include \ | |
47 | - libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes \ | |
45 | +../glibc-$VER/configure \ | |
46 | + --prefix=/tools \ | |
47 | + --host=$LFS_TGT \ | |
48 | + --build=$(../glibc-$VER/scripts/config.guess) \ | |
49 | + --disable-profile \ | |
50 | + --enable-add-ons \ | |
51 | + --enable-kernel=2.6.25 \ | |
52 | + --with-headers=/tools/include \ | |
53 | + libc_cv_forced_unwind=yes \ | |
54 | + libc_cv_ctors_header=yes \ | |
55 | + libc_cv_c_cleanup=yes \ | |
48 | 56 | 1> $LOG/$CHAP.$TARGET.1_conf.log 2>&1 || exit 1 |
49 | 57 | |
50 | 58 | echo \ \ Making... |
@@ -26,14 +26,21 @@ START=`date +'%Y/%m/%d %H:%M:%S.%N'` | ||
26 | 26 | |
27 | 27 | cd $TARGETDIR |
28 | 28 | |
29 | +echo \ \ Patching... | |
30 | +patch -Np1 -i ../binutils-2.22-build_fix-1.patch \ | |
31 | + 1> $LOG/$CHAP.$TARGET.0_patch.log 2>&1 | |
32 | + | |
29 | 33 | mkdir -v ../binutils-build |
30 | 34 | cd ../binutils-build |
31 | 35 | |
32 | 36 | echo \ \ Configuring... |
33 | 37 | CC="$LFS_TGT-gcc -B/tools/lib/" \ |
34 | - AR=$LFS_TGT-ar RANLIB=$LFS_TGT-ranlib \ | |
35 | - ../binutils-$VER/configure --prefix=/tools \ | |
36 | - --disable-nls --with-lib-path=/tools/lib \ | |
38 | +AR=$LFS_TGT-ar \ | |
39 | +RANLIB=$LFS_TGT-ranlib \ | |
40 | +../binutils-$VER/configure \ | |
41 | + --prefix=/tools \ | |
42 | + --disable-nls \ | |
43 | + --with-lib-path=/tools/lib \ | |
37 | 44 | 1> $LOG/$CHAP.$TARGET.1_conf.log 2>&1 |
38 | 45 | |
39 | 46 | echo \ \ Making... |
@@ -3,7 +3,7 @@ | ||
3 | 3 | THISFILE=`basename $0` |
4 | 4 | CHAP=`echo $THISFILE | sed s/\.sh//` |
5 | 5 | |
6 | -VER=4.6.3 | |
6 | +VER=4.7.0 | |
7 | 7 | TARGET=gcc-$VER |
8 | 8 | TARGETBALL=$TARGET.tar.bz2 |
9 | 9 | TARGETDIR=$TARGET |
@@ -29,7 +29,8 @@ rm -fr gcc-build | ||
29 | 29 | cd $TARGETDIR |
30 | 30 | |
31 | 31 | echo \ \ Patching... |
32 | -patch -Np1 -i $DLD/gcc-$VER-startfiles_fix-1.patch || exit 1 | |
32 | +patch -Np1 -i $DLD/gcc-$VER-startfiles_fix-1.patch \ | |
33 | + 1> $LOG/$CHAP.$TARGET.0_patch.log 2>&1 || exit 1 | |
33 | 34 | |
34 | 35 | cp -v gcc/Makefile.in{,.orig} |
35 | 36 | sed 's@\./fixinc\.sh@-c true@' gcc/Makefile.in.orig > gcc/Makefile.in |
@@ -76,14 +77,22 @@ cd ../gcc-build | ||
76 | 77 | |
77 | 78 | echo \ \ Configuring... |
78 | 79 | CC="$LFS_TGT-gcc -B/tools/lib/" \ |
79 | - AR=$LFS_TGT-ar RANLIB=$LFS_TGT-ranlib \ | |
80 | - ../gcc-$VER/configure --prefix=/tools \ | |
81 | - --with-local-prefix=/tools --enable-clocale=gnu \ | |
82 | - --enable-shared --enable-threads=posix \ | |
83 | - --enable-__cxa_atexit --enable-languages=c,c++ \ | |
84 | - --disable-libstdcxx-pch --disable-multilib \ | |
85 | - --disable-bootstrap --disable-libgomp \ | |
86 | - --without-ppl --without-cloog \ | |
80 | +AR=$LFS_TGT-ar \ | |
81 | +RANLIB=$LFS_TGT-ranlib \ | |
82 | +../gcc-$VER/configure \ | |
83 | + --prefix=/tools \ | |
84 | + --with-local-prefix=/tools \ | |
85 | + --enable-clocale=gnu \ | |
86 | + --enable-shared \ | |
87 | + --enable-threads=posix \ | |
88 | + --enable-__cxa_atexit \ | |
89 | + --enable-languages=c,c++ \ | |
90 | + --disable-libstdcxx-pch \ | |
91 | + --disable-multilib \ | |
92 | + --disable-bootstrap \ | |
93 | + --disable-libgomp \ | |
94 | + --without-ppl \ | |
95 | + --without-cloog \ | |
87 | 96 | --with-mpfr-include=$(pwd)/../gcc-$VER/mpfr/src \ |
88 | 97 | --with-mpfr-lib=$(pwd)/mpfr/src/.libs \ |
89 | 98 | 1> $LOG/$CHAP.$TARGET.1_conf.log 2>&1 || exit 1 |