1.1 --- a/scripts/build/cc_gcc.sh Tue May 01 09:03:40 2007 +0000
1.2 +++ b/scripts/build/cc_gcc.sh Mon May 07 21:47:38 2007 +0000
1.3 @@ -2,6 +2,26 @@
1.4 # Copyright 2007 Yann E. MORIN
1.5 # Licensed under the GPL v2. See COPYING in the root of this package
1.6
1.7 +# Download final gcc
1.8 +do_cc_get() {
1.9 + # Ah! gcc folks are kind of 'different': they store the tarballs in
1.10 + # subdirectories of the same name! That's because gcc is such /crap/ that
1.11 + # it is such /big/ that it needs being splitted for distribution! Sad. :-(
1.12 + # Arrgghh! Some of those versions does not follow this convention:
1.13 + # gcc-3.3.3 lives in releases/gcc-3.3.3, while gcc-2.95.* isn't in a
1.14 + # subdirectory! You bastard!
1.15 + CT_GetFile "${CT_CC_FILE}" \
1.16 + ftp://ftp.gnu.org/gnu/gcc/${CT_CC_FILE} \
1.17 + ftp://ftp.gnu.org/gnu/gcc/releases/${CT_CC_FILE} \
1.18 + ftp://ftp.gnu.org/gnu/gcc
1.19 +}
1.20 +
1.21 +# Extract final gcc
1.22 +do_cc_extract() {
1.23 + CT_ExtractAndPatch "${CT_CC_FILE}"
1.24 +}
1.25 +
1.26 +# Build final gcc
1.27 do_cc() {
1.28 CT_DoStep INFO "Installing final compiler"
1.29