mirror of
https://git.freebsd.org/ports.git
synced 2025-06-01 19:06:28 -04:00
Allow gcc compilers to be built on new arch 'powerpcspe'.
Tested for no-harm on amd64. Submitted by: jhibbits Approved by: portmgr (tier-2 blanket) Differential Revision: D13126
This commit is contained in:
parent
ff47063e2d
commit
d0c5aa8cc1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=466045
12 changed files with 114 additions and 6 deletions
|
@ -15,7 +15,7 @@ LICENSE= GPLv3 GPLv3RLE
|
|||
LICENSE_COMB= multi
|
||||
|
||||
DEPRECATED= Unsupported by upstream. Use GCC 6 or newer instead.
|
||||
ONLY_FOR_ARCHS= aarch64 amd64 arm armv6 i386 powerpc powerpc64 sparc64
|
||||
ONLY_FOR_ARCHS= aarch64 amd64 arm armv6 i386 powerpc powerpc64 powerpcspe sparc64
|
||||
BROKEN_sparc64= Does not build: bootstrap comparison failure
|
||||
|
||||
LIB_DEPENDS= libgmp.so:math/gmp \
|
||||
|
@ -66,6 +66,9 @@ MAKE_ARGS+=STAGE1_CXXFLAGS=-fbracket-depth=512
|
|||
|
||||
.elif ${ARCH} == powerpc64
|
||||
CONFIGURE_ENV+= UNAME_m="powerpc64"
|
||||
|
||||
.elif ${ARCH} == powerpcspe
|
||||
CONFIGURE_ARGS+= --with-cpu=8540 --enable-e500_double --without-fp
|
||||
.endif
|
||||
|
||||
LANGUAGES:= c,c++,objc,fortran
|
||||
|
|
15
lang/gcc5/files/patch-spe-config
Normal file
15
lang/gcc5/files/patch-spe-config
Normal file
|
@ -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"
|
||||
;;
|
|
@ -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
|
||||
|
|
15
lang/gcc6-devel/files/patch-spe-config
Normal file
15
lang/gcc6-devel/files/patch-spe-config
Normal file
|
@ -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"
|
||||
;;
|
|
@ -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
|
||||
BROKEN_sparc64= fails to configure: cannot compute suffix of object files: cannot compile
|
||||
|
||||
LIB_DEPENDS= libgmp.so:math/gmp \
|
||||
|
@ -79,6 +79,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
|
||||
|
|
15
lang/gcc6/files/patch-spe-config
Normal file
15
lang/gcc6/files/patch-spe-config
Normal file
|
@ -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"
|
||||
;;
|
|
@ -14,7 +14,7 @@ COMMENT= GNU Compiler Collection 7
|
|||
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 \
|
||||
|
@ -65,6 +65,9 @@ CONFIGURE_TARGET= x86_64-portbld-${OPSYS:tl}${OSREL}
|
|||
.elif ${ARCH} == powerpc64
|
||||
CONFIGURE_ENV+= UNAME_m="powerpc64"
|
||||
USE_GCC= yes
|
||||
|
||||
.elif ${ARCH} == powerpcspe
|
||||
CONFIGURE_ARGS+= --with-cpu=8540 --enable-e500_double --without-fp
|
||||
.endif
|
||||
|
||||
LANGUAGES:= c,c++,objc,fortran
|
||||
|
|
15
lang/gcc7-devel/files/patch-spe-config
Normal file
15
lang/gcc7-devel/files/patch-spe-config
Normal file
|
@ -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"
|
||||
;;
|
|
@ -14,7 +14,7 @@ COMMENT= GNU Compiler Collection 7
|
|||
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 \
|
||||
|
@ -59,6 +59,9 @@ CONFIGURE_TARGET= x86_64-portbld-${OPSYS:tl}${OSREL}
|
|||
.elif ${ARCH} == powerpc64
|
||||
CONFIGURE_ENV+= UNAME_m="powerpc64"
|
||||
USE_GCC= yes
|
||||
|
||||
.elif ${ARCH} == powerpcspe
|
||||
CONFIGURE_ARGS+= --with-cpu=8540 --enable-e500_double --without-fp
|
||||
.endif
|
||||
|
||||
LANGUAGES:= c,c++,objc,fortran
|
||||
|
|
15
lang/gcc7/files/patch-spe-config
Normal file
15
lang/gcc7/files/patch-spe-config
Normal file
|
@ -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"
|
||||
;;
|
|
@ -14,7 +14,7 @@ COMMENT= GNU Compiler Collection 8
|
|||
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 \
|
||||
|
@ -63,6 +63,9 @@ CONFIGURE_TARGET= x86_64-portbld-${OPSYS:tl}${OSREL}
|
|||
.elif ${ARCH} == powerpc64
|
||||
CONFIGURE_ENV+= UNAME_m="powerpc64"
|
||||
USE_GCC= yes
|
||||
|
||||
.elif ${ARCH} == powerpcspe
|
||||
CONFIGURE_ARGS+= --with-cpu=8540 --enable-e500_double --without-fp
|
||||
.endif
|
||||
|
||||
LANGUAGES:= c,c++,objc,fortran
|
||||
|
|
15
lang/gcc8-devel/files/patch-spe-config
Normal file
15
lang/gcc8-devel/files/patch-spe-config
Normal file
|
@ -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
|
||||
@@ -2383,6 +2383,9 @@
|
||||
tmake_file="${tmake_file} rs6000/t-freebsd64"
|
||||
extra_options="${extra_options} rs6000/linux64.opt"
|
||||
;;
|
||||
+ powerpcspe-*)
|
||||
+ tm_file="${tm_file} powerpcspe/freebsd.h powerpcspe/linuxspe.h powerpcspe/e500.h"
|
||||
+ ;;
|
||||
*)
|
||||
tm_file="${tm_file} rs6000/freebsd.h"
|
||||
;;
|
Loading…
Add table
Reference in a new issue