aboutsummaryrefslogtreecommitdiff
path: root/lang/gcc6-devel
diff options
context:
space:
mode:
authorMark Linimon <linimon@FreeBSD.org>2018-03-31 12:11:36 +0000
committerMark Linimon <linimon@FreeBSD.org>2018-03-31 12:11:36 +0000
commitd0c5aa8cc13c949fc023f4c2484fb6e43dfcbd8b (patch)
tree2cd5db266c8d5fab03fc51ffe23e978e0c05a7d8 /lang/gcc6-devel
parentff47063e2d322b0852c197556ea118a64332baa5 (diff)
downloadports-d0c5aa8cc13c949fc023f4c2484fb6e43dfcbd8b.tar.gz
ports-d0c5aa8cc13c949fc023f4c2484fb6e43dfcbd8b.zip
Notes
Diffstat (limited to 'lang/gcc6-devel')
-rw-r--r--lang/gcc6-devel/Makefile5
-rw-r--r--lang/gcc6-devel/files/patch-spe-config15
2 files changed, 19 insertions, 1 deletions
diff --git a/lang/gcc6-devel/Makefile b/lang/gcc6-devel/Makefile
index 38206c755ba3..e6ab3f3623dc 100644
--- a/lang/gcc6-devel/Makefile
+++ b/lang/gcc6-devel/Makefile
@@ -14,7 +14,7 @@ COMMENT= GNU Compiler Collection 6
LICENSE= GPLv3 GPLv3RLE
LICENSE_COMB= multi
-ONLY_FOR_ARCHS= aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 sparc64
+ONLY_FOR_ARCHS= aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 powerpcspe sparc64
LIB_DEPENDS= libgmp.so:math/gmp \
libmpfr.so:math/mpfr \
@@ -81,6 +81,9 @@ MAKE_ARGS+=STAGE1_CXXFLAGS=-fbracket-depth=512
.elif ${ARCH} == powerpc64
CONFIGURE_ENV+= UNAME_m="powerpc64"
USE_GCC= 5 # Cannot require ourselves, needs to be at least 4.9.
+
+.elif ${ARCH} == powerpcspe
+CONFIGURE_ARGS+= --with-cpu=8540 --enable-e500_double --without-fp
.endif
LANGUAGES:= c,c++,objc,fortran
diff --git a/lang/gcc6-devel/files/patch-spe-config b/lang/gcc6-devel/files/patch-spe-config
new file mode 100644
index 000000000000..276fe8951901
--- /dev/null
+++ b/lang/gcc6-devel/files/patch-spe-config
@@ -0,0 +1,15 @@
+--- UTC
+Index: gcc/config.gcc
+===================================================================
+--- gcc/config.gcc.old 2017-04-05 17:48:03.045750000 -0500
++++ gcc/config.gcc 2017-04-05 17:49:22.143572000 -0500
+@@ -2285,6 +2285,9 @@
+ tmake_file="${tmake_file} rs6000/t-freebsd64"
+ extra_options="${extra_options} rs6000/linux64.opt"
+ ;;
++ powerpcspe-*)
++ tm_file="${tm_file} rs6000/freebsd.h rs6000/linuxspe.h rs6000/e500.h"
++ ;;
+ *)
+ tm_file="${tm_file} rs6000/freebsd.h"
+ ;;