diff options
author | Noe Rubinstein <nrubinstein@avencall.com> | 2012-05-28 11:35:41 +0200 |
---|---|---|
committer | Noe Rubinstein <nrubinstein@avencall.com> | 2012-12-07 12:45:54 +0100 |
commit | 385fb2000c1a149d441eb11b3001877555d69e40 (patch) | |
tree | 69d6678b501338d2669bdcb0af3b475eebb5fe22 | |
parent | 21c25950c8fe2f1a3e20585eee2921a3de22715a (diff) |
Change buildgcc for 2012
-rwxr-xr-x | util/crossgcc/buildgcc | 48 |
1 files changed, 25 insertions, 23 deletions
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc index 26fbc662c..bfcfd17f8 100755 --- a/util/crossgcc/buildgcc +++ b/util/crossgcc/buildgcc @@ -33,7 +33,7 @@ MPC_VERSION=0.8.2 LIBELF_VERSION=0.8.13 GCC_VERSION=4.5.2 BINUTILS_VERSION=2.20.1 -GDB_VERSION=7.2 +#GDB_VERSION=7.2 W32API_VERSION=3.15 MINGWRT_VERSION=3.18 @@ -44,7 +44,7 @@ MPC_ARCHIVE="http://www.multiprecision.org/mpc/download/mpc-${MPC_VERSION}.tar.g LIBELF_ARCHIVE="http://www.mr511.de/software/libelf-${LIBELF_VERSION}.tar.gz" GCC_ARCHIVE="ftp://ftp.fu-berlin.de/unix/languages/gcc/releases/gcc-${GCC_VERSION}/gcc-core-${GCC_VERSION}.tar.bz2" BINUTILS_ARCHIVE="http://ftp.gnu.org/gnu/binutils/binutils-${BINUTILS_VERSION}.tar.bz2" -GDB_ARCHIVE="http://ftp.gnu.org/gnu/gdb/gdb-${GDB_VERSION}.tar.bz2" +#GDB_ARCHIVE="http://ftp.gnu.org/gnu/gdb/gdb-${GDB_VERSION}a.tar.bz2" W32API_ARCHIVE="http://downloads.sourceforge.net/project/mingw/MinGW/BaseSystem/RuntimeLibrary/Win32-API/w32api-${W32API_VERSION}/w32api-${W32API_VERSION}-mingw32-src.tar.gz" MINGWRT_ARCHIVE="http://downloads.sourceforge.net/project/mingw/MinGW/BaseSystem/RuntimeLibrary/MinGW-RT/mingwrt-${MINGWRT_VERSION}/mingwrt-${MINGWRT_VERSION}-mingw32-src.tar.gz" @@ -54,7 +54,7 @@ MPC_DIR="mpc-${MPC_VERSION}" LIBELF_DIR="libelf-${LIBELF_VERSION}" GCC_DIR="gcc-${GCC_VERSION}" BINUTILS_DIR="binutils-${BINUTILS_VERSION}" -GDB_DIR="gdb-${GDB_VERSION}" +#GDB_DIR="gdb-${GDB_VERSION}" W32API_DIR="w32api-${W32API_VERSION}-mingw32" MINGWRT_DIR="mingwrt-${MINGWRT_VERSION}-mingw32" @@ -207,7 +207,8 @@ fi printf "Downloading tar balls ... \n" mkdir -p tarballs -for ARCHIVE in $GMP_ARCHIVE $MPFR_ARCHIVE $MPC_ARCHIVE $LIBELF_ARCHIVE $GCC_ARCHIVE $BINUTILS_ARCHIVE $GDB_ARCHIVE $MINGW_ARCHIVES; do +for ARCHIVE in $GMP_ARCHIVE $MPFR_ARCHIVE $MPC_ARCHIVE $LIBELF_ARCHIVE $GCC_ARCHIVE $BINUTILS_ARCHIVE $MINGW_ARCHIVES # $GDB_ARCHIVE +do FILE=`basename $ARCHIVE` printf " * $FILE " test -f tarballs/$FILE && printf "(cached)" || ( @@ -228,7 +229,8 @@ if [ "$TARGETARCH" = "i386-mingw32" ]; then fi printf "Unpacking and patching ... \n" -for PACKAGE in GMP MPFR MPC LIBELF GCC BINUTILS GDB $MINGW_PACKAGES; do +for PACKAGE in GMP MPFR MPC LIBELF GCC BINUTILS $MINGW_PACKAGES #GDB +do archive=$PACKAGE"_ARCHIVE" archive=${!archive} dir=$PACKAGE"_DIR" @@ -413,23 +415,23 @@ test -r build-gcc/.failed && printf "${RED}failed${NC}\n" || printf "${green}ok$ test -r build-gcc/.failed && exit 1 fi -if [ -f build-gdb/.success ]; then - printf "Skipping GDB as it is already built\n" -else -printf "Building GDB ${GDB_VERSION} ... " -( - cd build-gdb - export PATH=$PATH:$DESTDIR$TARGETDIR/bin - rm -f .failed - CFLAGS="$HOSTCFLAGS" ../gdb-${GDB_VERSION}/configure --prefix=$TARGETDIR --target=${TARGETARCH} \ - --without-python --disable-werror --disable-nls - $MAKE $JOBS || touch .failed - $MAKE install DESTDIR=$DESTDIR || touch .failed - if [ ! -f .failed ]; then touch .success; fi -) &> build-gdb/crossgcc-build.log -test -r build-gdb/.failed && printf "${RED}failed${NC}\n" || printf "${green}ok${NC}\n" -test -r build-gdb/.failed && exit 1 -fi +#if [ -f build-gdb/.success ]; then +# printf "Skipping GDB as it is already built\n" +#else +#printf "Building GDB ${GDB_VERSION} ... " +#( +# cd build-gdb +# export PATH=$PATH:$DESTDIR$TARGETDIR/bin +# rm -f .failed +# CFLAGS="$HOSTCFLAGS" ../gdb-${GDB_VERSION}/configure --prefix=$TARGETDIR --target=${TARGETARCH} \ +# --without-python --disable-werror --disable-nls +# $MAKE $JOBS || touch .failed +# $MAKE install DESTDIR=$DESTDIR || touch .failed +# if [ ! -f .failed ]; then touch .success; fi +#) &> build-gdb/crossgcc-build.log +#test -r build-gdb/.failed && printf "${RED}failed${NC}\n" || printf "${green}ok${NC}\n" +#test -r build-gdb/.failed && exit 1 +#fi if [ $SAVETEMPS -eq 0 ]; then printf "Cleaning up... " @@ -439,7 +441,7 @@ if [ $SAVETEMPS -eq 0 ]; then rm -rf ${LIBELF_DIR} build-libelf rm -rf ${BINUTILS_DIR} build-binutils rm -rf ${GCC_DIR} build-gcc - rm -rf ${GDB_DIR} build-gdb + #rm -rf ${GDB_DIR} build-gdb printf "${green}ok${NC}\n" else printf "Leaving temporary files around... ${green}ok${NC}\n" |