summaryrefslogtreecommitdiff
path: root/translate/gcc/dist.sh
diff options
context:
space:
mode:
authorgingold2012-12-11 02:46:11 +0000
committergingold2012-12-11 02:46:11 +0000
commit560c4c42f15155771b5558c37cec7a1acbb48751 (patch)
treeef3a6144800e7ae38d4caab31ab1be9eb29d6cd7 /translate/gcc/dist.sh
parent03cc455ed44229ecd2b925e110f9019c4e6f497b (diff)
downloadghdl-560c4c42f15155771b5558c37cec7a1acbb48751.tar.gz
ghdl-560c4c42f15155771b5558c37cec7a1acbb48751.tar.bz2
ghdl-560c4c42f15155771b5558c37cec7a1acbb48751.zip
Part of the previous commit (upgrade to gcc 4.7)
Diffstat (limited to 'translate/gcc/dist.sh')
-rwxr-xr-xtranslate/gcc/dist.sh9
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
;;