Rev 2131 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2131 | Rev 2292 | ||
---|---|---|---|
Line 14... | Line 14... | ||
14 | exit |
14 | exit |
15 | fi |
15 | fi |
16 | } |
16 | } |
17 | 17 | ||
18 | BINUTILS_VERSION="2.17" |
18 | BINUTILS_VERSION="2.17" |
19 | GCC_VERSION="4.1.1" |
19 | GCC_VERSION="4.1.2" |
20 | 20 | ||
21 | BINUTILS="binutils-${BINUTILS_VERSION}.tar.gz" |
21 | BINUTILS="binutils-${BINUTILS_VERSION}.tar.gz" |
22 | GCC_CORE="gcc-core-${GCC_VERSION}.tar.bz2" |
22 | GCC_CORE="gcc-core-${GCC_VERSION}.tar.bz2" |
23 | GCC_OBJC="gcc-objc-${GCC_VERSION}.tar.bz2" |
23 | GCC_OBJC="gcc-objc-${GCC_VERSION}.tar.bz2" |
24 | GCC_CPP="gcc-g++-${GCC_VERSION}.tar.bz2" |
24 | GCC_CPP="gcc-g++-${GCC_VERSION}.tar.bz2" |
Line 27... | Line 27... | ||
27 | GCC_SOURCE="ftp://ftp.gnu.org/gnu/gcc/gcc-${GCC_VERSION}/" |
27 | GCC_SOURCE="ftp://ftp.gnu.org/gnu/gcc/gcc-${GCC_VERSION}/" |
28 | 28 | ||
29 | PLATFORM="i686" |
29 | PLATFORM="i686" |
30 | WORKDIR=`pwd` |
30 | WORKDIR=`pwd` |
31 | TARGET="${PLATFORM}-pc-linux-gnu" |
31 | TARGET="${PLATFORM}-pc-linux-gnu" |
32 | HOST="i686-pc-linux-gnu" |
- | |
33 | PREFIX="/usr/local/${PLATFORM}" |
32 | PREFIX="/usr/local/${PLATFORM}" |
34 | BINUTILSDIR="${WORKDIR}/binutils-${BINUTILS_VERSION}" |
33 | BINUTILSDIR="${WORKDIR}/binutils-${BINUTILS_VERSION}" |
35 | GCCDIR="${WORKDIR}/gcc-${GCC_VERSION}" |
34 | GCCDIR="${WORKDIR}/gcc-${GCC_VERSION}" |
36 | OBJDIR="${WORKDIR}/gcc-obj" |
35 | OBJDIR="${WORKDIR}/gcc-obj" |
37 | 36 | ||
Line 79... | Line 78... | ||
79 | check_error $? "Error unpacking GCC C++." |
78 | check_error $? "Error unpacking GCC C++." |
80 | 79 | ||
81 | echo ">>> Compiling and installing binutils" |
80 | echo ">>> Compiling and installing binutils" |
82 | cd "${BINUTILSDIR}" |
81 | cd "${BINUTILSDIR}" |
83 | check_error $? "Change directory failed." |
82 | check_error $? "Change directory failed." |
84 | ./configure "--host=${HOST}" "--target=${TARGET}" "--prefix=${PREFIX}" "--program-prefix=${TARGET}-" "--disable-nls" |
83 | ./configure "--target=${TARGET}" "--prefix=${PREFIX}" "--program-prefix=${TARGET}-" "--disable-nls" |
85 | check_error $? "Error configuring binutils." |
84 | check_error $? "Error configuring binutils." |
86 | make all install |
85 | make all install |
87 | check_error $? "Error compiling/installing binutils." |
86 | check_error $? "Error compiling/installing binutils." |
88 | 87 | ||
89 | echo ">>> Compiling and installing GCC" |
88 | echo ">>> Compiling and installing GCC" |
90 | cd "${OBJDIR}" |
89 | cd "${OBJDIR}" |
91 | check_error $? "Change directory failed." |
90 | check_error $? "Change directory failed." |
92 | "${GCCDIR}/configure" "--host=${HOST}" "--target=${TARGET}" "--prefix=${PREFIX}" "--program-prefix=${TARGET}-" --with-gnu-as --with-gnu-ld --disable-nls --disable-threads --enable-languages=c,objc,c++,obj-c++ --disable-multilib --disable-libgcj --without-headers --disable-shared |
91 | "${GCCDIR}/configure" "--target=${TARGET}" "--prefix=${PREFIX}" "--program-prefix=${TARGET}-" --with-gnu-as --with-gnu-ld --disable-nls --disable-threads --enable-languages=c,objc,c++,obj-c++ --disable-multilib --disable-libgcj --without-headers --disable-shared |
93 | check_error $? "Error configuring GCC." |
92 | check_error $? "Error configuring GCC." |
94 | PATH="${PATH}:${PREFIX}/bin" make all-gcc install-gcc all-target-libobjc install-target-libobjc |
93 | PATH="${PATH}:${PREFIX}/bin" make all-gcc install-gcc |
95 | check_error $? "Error compiling/installing GCC." |
94 | check_error $? "Error compiling/installing GCC." |
96 | 95 | ||
97 | echo |
96 | echo |
98 | echo ">>> Cross-compiler for ${TARGET} installed." |
97 | echo ">>> Cross-compiler for ${TARGET} installed." |