diff options
Diffstat (limited to 'translate/gcc/dist.sh')
-rwxr-xr-x | translate/gcc/dist.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/translate/gcc/dist.sh b/translate/gcc/dist.sh index f79719b..9501334 100755 --- a/translate/gcc/dist.sh +++ b/translate/gcc/dist.sh @@ -39,7 +39,7 @@ set -e # GCC version -GCCVERSION=4.3.4 +GCCVERSION=4.7.2 # Machine name used by GCC MACHINE=i686-pc-linux-gnu # Directory where GCC sources (and objects) stay. @@ -187,12 +187,17 @@ do_compile () case x86 in x86) BUILD=i686-pc-linux-gnu - CONFIG_LIBS="--with-gmp=$PWD/../build --with-mpfr=$PWD/../build" + # gmp location (mpfr and mpc are supposed to be at the same place) + CONFIG_LIBS="--with-gmp=$PWD/../build" ;; x86-64) BUILD=x86_64-pc-linux-gnu CONFIG_LIBS="" ;; + darwin) + BUILD=x86_64-apple-darwin10.7 + CONFIG_LIBS="--with-gmp=$HOME/local" + ;; *) exit 1 ;; |