wok-6.x rev 10036
gcc: we want a native i486 compiler to cross compile full system
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri May 20 06:11:16 2011 +0200 (2011-05-20) |
parents | d131d9604342 |
children | 002ffd67d6ed |
files | gcc/receipt slitaz-toolchain/receipt |
line diff
1.1 --- a/gcc/receipt Fri May 20 04:19:01 2011 +0200 1.2 +++ b/gcc/receipt Fri May 20 06:11:16 2011 +0200 1.3 @@ -91,8 +91,6 @@ 1.4 1.5 { CC="$BUILD_HOST-gcc -B/tools/lib/" \ 1.6 AR=$BUILD_HOST-ar RANLIB=$BUILD_HOST-ranlib \ 1.7 - # --disable-bootstrap dont exist ??? 1.8 - # See: ./configure --help | grep bootstrap 1.9 $src/configure \ 1.10 --with-local-prefix=/tools --enable-clocale=gnu \ 1.11 --enable-shared --enable-threads=posix \ 1.12 @@ -122,7 +120,9 @@ 1.13 sed -i 's/install_to_$(INSTALL_DEST) //' \ 1.14 libiberty/Makefile.in || return 1 1.15 mkdir -p ../gcc-build && cd ../gcc-build 1.16 - 1.17 + 1.18 + # This is the default GCC and we want a native build to cross compile after. 1.19 + # SliTaz target i486 host so we need a native i486 build for GCC. 1.20 case "$opt" in 1.21 --first-pass) 1.22 # Used by slitaz-toolchain when rebuilding the full toolchain. 1.23 @@ -132,15 +132,16 @@ 1.24 --disable-nls \ 1.25 --enable-shared \ 1.26 --enable-languages=c,c++ \ 1.27 - --disable-multilib \ 1.28 --disable-libstdcxx-pch \ 1.29 --enable-__cxa_atexit \ 1.30 --enable-clocale=gnu \ 1.31 --enable-threads=posix \ 1.32 - $CONFIGURE_ARGS && 1.33 + --disable-bootstrap \ 1.34 + --build=$HOST_SYSTEM \ 1.35 + --host=$HOST_SYSTEM && 1.36 make && make install ;; 1.37 *) 1.38 - # Used by default to produce a full featured GCC compiler. 1.39 + # Used by default to produce a full featured X86 GCC compiler. 1.40 echo "cook: configure GCC for: final/full build" 1.41 $src/configure \ 1.42 --libexecdir=/usr/lib \ 1.43 @@ -153,8 +154,11 @@ 1.44 --enable-__cxa_atexit \ 1.45 --enable-lto \ 1.46 --enable-threads=posix \ 1.47 + --disable-bootstrap \ 1.48 + --with-pkgversion="SliTaz" \ 1.49 --with-tune=$ARCH \ 1.50 - $CONFIGURE_ARGS && 1.51 + --build=$HOST_SYSTEM \ 1.52 + --host=$HOST_SYSTEM && 1.53 make && make install ;; 1.54 esac 1.55 } 1.56 @@ -166,7 +170,7 @@ 1.57 cp -a $_pkg/usr/bin $fs/usr 1.58 1.59 # Copy all libs. Remove libgcc_s.so and libstdc++.so they goes in 1.60 - # the gcc-lib-base-$VERSION package. 1.61 + # the gcc-lib-base package. 1.62 cp -a $_pkg/usr/lib $fs/usr 1.63 rm -f $fs/usr/lib/libgcc_s.so* 1.64 rm -f $fs/usr/lib/libstdc++.so* 1.65 @@ -176,7 +180,7 @@ 1.66 # Include files. 1.67 cp -a $_pkg/usr/include $fs/usr 1.68 1.69 - # Gfortran goes in gfortran-$VERSION package. 1.70 + # Gfortran goes in gfortran package. 1.71 rm -f $fs/usr/bin/*gfortran 1.72 rm -f $fs/usr/lib/libgfortran* 1.73 rm -f $fs/usr/lib/gcc/*/$VERSION/libgfortran*
2.1 --- a/slitaz-toolchain/receipt Fri May 20 04:19:01 2011 +0200 2.2 +++ b/slitaz-toolchain/receipt Fri May 20 06:11:16 2011 +0200 2.3 @@ -41,7 +41,6 @@ 2.4 echo "cook: GCC first pass: $(date '+%Y-%m-%d %H:%M')" >> $tmplog 2.5 cook gcc --install --first-pass 2.6 cook gcc-lib-base --install 2.7 - cook libobjc --install 2.8 2.9 # 3. linux-api-headers 2.10 echo "cook: linux API headers: $(date '+%Y-%m-%d %H:%M')" >> $tmplog 2.11 @@ -60,9 +59,13 @@ 2.12 2.13 # 6. gcc (final) 2.14 echo "cook: GCC final: $(date '+%Y-%m-%d %H:%M')" >> $tmplog 2.15 - cook gcc --install 2.16 - cook gcc-lib-base --install 2.17 - cook libobjc --install 2.18 + for i in gcc gcc-lib-base libobjc 2.19 + do 2.20 + echo "cook: $i: $(date '+%Y-%m-%d %H:%M')" >> $tmplog 2.21 + cook $i --install 2.22 + done 2.23 + cook libgfortran 2.24 + cook gfortran 2.25 2.26 # All packages cooked got ther own log so we dont keep them. 2.27 separator >> $tmplog && echo "" >> $tmplog 2.28 @@ -81,6 +84,7 @@ 2.29 cat > $fs/usr/share/doc/slitaz/toolchain.txt << EOT 2.30 SliTaz GNU/Linux toolchain 2.31 ================================================================================ 2.32 + 2.33 Build date : $(date "+%Y-%m-%d") 2.34 Build system : $BUILD_SYSTEM 2.35 Host system : $HOST_SYSTEM 2.36 @@ -92,6 +96,8 @@ 2.37 * GCC $gcc 2.38 * Glibc $glibc 2.39 2.40 +Documentation: http://doc.slitaz.org/en:cookbook:toolchain 2.41 + 2.42 ================================================================================ 2.43 2.44 EOT