|
From: <sv...@va...> - 2008-06-18 08:26:50
|
Author: bart Date: 2008-06-18 09:26:45 +0100 (Wed, 18 Jun 2008) New Revision: 8248 Log: Renamed compile-gcc into download-and-build-gcc. Added: trunk/exp-drd/scripts/download-and-build-gcc Removed: trunk/exp-drd/scripts/compile-gcc Modified: trunk/exp-drd/docs/README.txt Modified: trunk/exp-drd/docs/README.txt =================================================================== --- trunk/exp-drd/docs/README.txt 2008-06-18 08:09:42 UTC (rev 8247) +++ trunk/exp-drd/docs/README.txt 2008-06-18 08:26:45 UTC (rev 8248) @@ -354,7 +354,7 @@ EOF For an example of how to recompile gcc, see also the script -exp-drd/scripts/compile-gcc. +exp-drd/scripts/download-and-build-gcc. Future DRD Versions Deleted: trunk/exp-drd/scripts/compile-gcc =================================================================== --- trunk/exp-drd/scripts/compile-gcc 2008-06-18 08:09:42 UTC (rev 8247) +++ trunk/exp-drd/scripts/compile-gcc 2008-06-18 08:26:45 UTC (rev 8248) @@ -1,53 +0,0 @@ -#!/bin/sh - -# Make sure that libgmp and libmpfr are installed before you run this script. -# On Debian systems, e.g. Ubuntu, you can install these libraries as follows: -# sudo apt-get install libgmp3-dev libmpfr-dev. In openSUSE these packages -# are called gmp-devel and mpfr-devel. - - -GCC_VERSION=4.3.1 -FSF_MIRROR=ftp://ftp.easynet.be/gnu -SRCDIR=$HOME/software -DOWNLOADS=$SRCDIR/downloads -SRC=$HOME/software/gcc-${GCC_VERSION} -BUILD=${SRC}-build -TAR=gcc-${GCC_VERSION}.tar.bz2 -PREFIX=$HOME/gcc-${GCC_VERSION} -export LC_ALL=C -export MAKEFLAGS="-j$(($(grep -c '^processor' /proc/cpuinfo) + 1))" - -if [ ! -e /usr/include/gmp.h ]; then - echo "Please install the gmp library development package first." - exit 1 -fi - -if [ ! -e /usr/include/mpfr.h ]; then - echo "Please install the mpfr library development package first." - exit 1 -fi - -rm -rf ${BUILD} || exit $? -rm -rf ${PREFIX} || exit $? -mkdir -p ${BUILD} || exit $? -mkdir -p ${DOWNLOADS} || exit $? -cd ${BUILD} || exit $? - -if [ ! -e $DOWNLOADS/$TAR ]; then - ( cd $DOWNLOADS && wget -q $FSF_MIRROR/gcc/gcc-${GCC_VERSION}/$TAR ) -fi - -if [ ! -e $SRC ]; then - ( cd $SRCDIR && tar -xjf $DOWNLOADS/$TAR ) -fi - -${SRC}/configure \ - --disable-linux-futex \ - --disable-mudflap \ - --disable-nls \ - --enable-languages=c,c++ \ - --enable-threads=posix \ - --enable-tls \ - --prefix=$PREFIX - -time { make -s && make -s install; } Copied: trunk/exp-drd/scripts/download-and-build-gcc (from rev 8244, trunk/exp-drd/scripts/compile-gcc) =================================================================== --- trunk/exp-drd/scripts/download-and-build-gcc (rev 0) +++ trunk/exp-drd/scripts/download-and-build-gcc 2008-06-18 08:26:45 UTC (rev 8248) @@ -0,0 +1,53 @@ +#!/bin/bash + +# Make sure that libgmp and libmpfr are installed before you run this script. +# On Debian systems, e.g. Ubuntu, you can install these libraries as follows: +# sudo apt-get install libgmp3-dev libmpfr-dev. In openSUSE these packages +# are called gmp-devel and mpfr-devel. + + +GCC_VERSION=4.3.1 +FSF_MIRROR=ftp://ftp.easynet.be/gnu +SRCDIR=$HOME/software +DOWNLOADS=$SRCDIR/downloads +SRC=$HOME/software/gcc-${GCC_VERSION} +BUILD=${SRC}-build +TAR=gcc-${GCC_VERSION}.tar.bz2 +PREFIX=$HOME/gcc-${GCC_VERSION} +export LC_ALL=C +export MAKEFLAGS="-j$(($(grep -c '^processor' /proc/cpuinfo) + 1))" + +if [ ! -e /usr/include/gmp.h ]; then + echo "Please install the gmp library development package first." + exit 1 +fi + +if [ ! -e /usr/include/mpfr.h ]; then + echo "Please install the mpfr library development package first." + exit 1 +fi + +rm -rf ${BUILD} || exit $? +rm -rf ${PREFIX} || exit $? +mkdir -p ${BUILD} || exit $? +mkdir -p ${DOWNLOADS} || exit $? +cd ${BUILD} || exit $? + +if [ ! -e $DOWNLOADS/$TAR ]; then + ( cd $DOWNLOADS && wget -q $FSF_MIRROR/gcc/gcc-${GCC_VERSION}/$TAR ) +fi + +if [ ! -e $SRC ]; then + ( cd $SRCDIR && tar -xjf $DOWNLOADS/$TAR ) +fi + +${SRC}/configure \ + --disable-linux-futex \ + --disable-mudflap \ + --disable-nls \ + --enable-languages=c,c++ \ + --enable-threads=posix \ + --enable-tls \ + --prefix=$PREFIX + +time { make -s && make -s install; } |