aboutsummaryrefslogtreecommitdiffstats
path: root/devel/boehm-gc
diff options
context:
space:
mode:
authornobutaka <nobutaka@FreeBSD.org>2005-03-20 00:44:02 +0800
committernobutaka <nobutaka@FreeBSD.org>2005-03-20 00:44:02 +0800
commit4bc490d0a7f56f386da7f970f4ce5ef67fb59ed9 (patch)
tree4aab056ebf66805126358d762bd1d1af126bb803 /devel/boehm-gc
parent6dc958961608960274a5d6d39167c796b33d0e17 (diff)
downloadfreebsd-ports-gnome-4bc490d0a7f56f386da7f970f4ce5ef67fb59ed9.tar.gz
freebsd-ports-gnome-4bc490d0a7f56f386da7f970f4ce5ef67fb59ed9.tar.zst
freebsd-ports-gnome-4bc490d0a7f56f386da7f970f4ce5ef67fb59ed9.zip
Fix build on powerpc.
PR: ports/78577 Submitted by: Martin Minkus <diskiller@diablo.diskiller.net>
Diffstat (limited to 'devel/boehm-gc')
-rw-r--r--devel/boehm-gc/Makefile4
-rw-r--r--devel/boehm-gc/files/patch-include-private-gcconfig.h32
2 files changed, 31 insertions, 5 deletions
diff --git a/devel/boehm-gc/Makefile b/devel/boehm-gc/Makefile
index ba5baf455f1d..07837e1f43af 100644
--- a/devel/boehm-gc/Makefile
+++ b/devel/boehm-gc/Makefile
@@ -48,8 +48,8 @@ PKGNAMESUFFIX:= ${PKGNAMESUFFIX}+fulldebug
MAN3= gc.3
-.if ${ARCH} != "i386" && ${ARCH} != "alpha" && ${ARCH} != "amd64" && ${ARCH} != "sparc64"
-BROKEN= "Does not compile on !i386 and !alpha and !amd64 and !sparc64"
+.if ${ARCH} != "i386" && ${ARCH} != "alpha" && ${ARCH} != "amd64" && ${ARCH} != "sparc64" && ${ARCH} != "powerpc"
+BROKEN= "Does not compile on !i386 and !alpha and !amd64 and !sparc64 and !powerpc"
.endif
post-patch:
diff --git a/devel/boehm-gc/files/patch-include-private-gcconfig.h b/devel/boehm-gc/files/patch-include-private-gcconfig.h
index 57e73a9f867d..79ff64927b76 100644
--- a/devel/boehm-gc/files/patch-include-private-gcconfig.h
+++ b/devel/boehm-gc/files/patch-include-private-gcconfig.h
@@ -1,6 +1,6 @@
--- include/private/gcconfig.h.orig Sat Dec 18 09:20:16 2004
-+++ include/private/gcconfig.h Mon Jan 3 19:49:44 2005
-@@ -328,6 +328,10 @@
++++ include/private/gcconfig.h Sun Mar 20 01:37:33 2005
+@@ -328,10 +328,18 @@
# define X86_64
# define mach_type_known
# endif
@@ -11,7 +11,33 @@
# if defined(FREEBSD) && defined(__sparc__)
# define SPARC
# define mach_type_known
-@@ -1939,6 +1943,15 @@
+-#endif
++# endif
++# if defined(FREEBSD) && defined(__powerpc__)
++# define POWERPC
++# define mach_type_known
++# endif
+ # if defined(bsdi) && (defined(i386) || defined(__i386__))
+ # define I386
+ # define BSDI
+@@ -811,6 +819,16 @@
+ # define DATASTART GC_data_start
+ # define DYNAMIC_LOADING
+ # endif
++# ifdef FREEBSD
++# define ALIGNMENT 4
++# define OS_TYPE "FREEBSD"
++# ifdef __ELF__
++# define DYNAMIC_LOADING
++# endif
++# define HEURISTIC2
++ extern char etext[];
++# define SEARCH_FOR_DATA_START
++# endif
+ # ifdef NOSYS
+ # define ALIGNMENT 4
+ # define OS_TYPE "NOSYS"
+@@ -1939,6 +1957,15 @@
# ifdef __ELF__
# define DYNAMIC_LOADING
# endif