diff options
author | jlam <jlam> | 2000-07-25 00:46:58 +0000 |
---|---|---|
committer | jlam <jlam> | 2000-07-25 00:46:58 +0000 |
commit | 3412a60e7fdd31a9a558ef684949f32067ebfe65 (patch) | |
tree | 08cf00bc3441e393fc97eeb13c0f5a9c18d66ec5 | |
parent | c00538bea31cf1beca2758aa4e8e1fe403beba4e (diff) | |
download | pkgsrc-3412a60e7fdd31a9a558ef684949f32067ebfe65.tar.gz |
Add support for mipsel (hpcmips). Patch taken from PR#10643 by
Hiroyuki Yanai <fk200329@fsinet.or.jp>.
-rw-r--r-- | devel/boehm-gc/Makefile | 6 | ||||
-rw-r--r-- | devel/boehm-gc/files/patch-sum | 4 | ||||
-rw-r--r-- | devel/boehm-gc/patches/patch-ac | 53 |
3 files changed, 49 insertions, 14 deletions
diff --git a/devel/boehm-gc/Makefile b/devel/boehm-gc/Makefile index 0fd59451d45..d59cf84dcca 100644 --- a/devel/boehm-gc/Makefile +++ b/devel/boehm-gc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2000/06/20 21:47:20 jlam Exp $ +# $NetBSD: Makefile,v 1.16 2000/07/25 00:46:58 jlam Exp $ # FreeBSD Id: Makefile,v 1.1 1996/11/16 01:51:25 jdp Exp # @@ -24,6 +24,10 @@ INSTALL_TARGET= BSD-pkg-install EXTRACT_ELEMENTS= -u .endif +.if ${MACHINE_ARCH} == "mipsel" +CFLAGS+= -D__MIPSEL__ +.endif + post-extract: ${MV} ${WRKSRC}/gc.man ${WRKSRC}/gc.man.in diff --git a/devel/boehm-gc/files/patch-sum b/devel/boehm-gc/files/patch-sum index c5fff884e1f..26629b2b257 100644 --- a/devel/boehm-gc/files/patch-sum +++ b/devel/boehm-gc/files/patch-sum @@ -1,8 +1,8 @@ -$NetBSD: patch-sum,v 1.7 2000/06/30 19:36:05 itojun Exp $ +$NetBSD: patch-sum,v 1.8 2000/07/25 00:46:58 jlam Exp $ MD5 (patch-aa) = af2c2e81993bff8eb2f98bbee6da43c6 MD5 (patch-ab) = a0d21ebc72d75966e6ecbb1aaca196a3 -MD5 (patch-ac) = 0079fad59768ab836cb8c52b1b925ba0 +MD5 (patch-ac) = a6deaf1cff40e9de5e46a96fed97f719 MD5 (patch-ad) = 02e1901d3e23c16462a6806b5a9ffbda MD5 (patch-ae) = 1c43a1657fecc6ac539e72062fba3da4 MD5 (patch-af) = fac88bab69e4dfa6dfd93f096346a7a5 diff --git a/devel/boehm-gc/patches/patch-ac b/devel/boehm-gc/patches/patch-ac index 9139eb0a654..7b0e28e3c9f 100644 --- a/devel/boehm-gc/patches/patch-ac +++ b/devel/boehm-gc/patches/patch-ac @@ -1,7 +1,7 @@ -$NetBSD: patch-ac,v 1.6 2000/06/20 21:50:20 jlam Exp $ +$NetBSD: patch-ac,v 1.7 2000/07/25 00:46:58 jlam Exp $ ---- gcconfig.h.orig Wed Apr 26 09:41:01 2000 -+++ gcconfig.h Sat May 6 04:39:48 2000 +--- gcconfig.h.orig Tue Apr 25 20:41:01 2000 ++++ gcconfig.h Mon Jul 24 20:42:56 2000 @@ -27,6 +27,11 @@ # define LINUX # endif @@ -26,7 +26,17 @@ $NetBSD: patch-ac,v 1.6 2000/06/20 21:50:20 jlam Exp $ # define mach_type_known # endif # if defined(__NetBSD__) && defined(arm32) -@@ -114,7 +122,7 @@ +@@ -81,6 +89,9 @@ + # endif + # endif + # endif /* !LINUX */ ++# if defined(__NetBSD__) && defined(__MIPSEL__) ++# undef ULTRIX ++# endif + # define mach_type_known + # endif + # if defined(sequent) && defined(i386) +@@ -114,7 +125,7 @@ # define mach_type_known # endif # if defined(sparc) && defined(unix) && !defined(sun) && !defined(linux) \ @@ -35,7 +45,7 @@ $NetBSD: patch-ac,v 1.6 2000/06/20 21:50:20 jlam Exp $ # define SPARC # define DRSNX # define mach_type_known -@@ -123,6 +131,10 @@ +@@ -123,6 +134,10 @@ # define RS6000 # define mach_type_known # endif @@ -46,7 +56,7 @@ $NetBSD: patch-ac,v 1.6 2000/06/20 21:50:20 jlam Exp $ # if defined(_M_XENIX) && defined(_M_SYSV) && defined(_M_I386) /* The above test may need refinement */ # define I386 -@@ -172,7 +184,7 @@ +@@ -172,7 +187,7 @@ # endif # if defined(__alpha) || defined(__alpha__) # define ALPHA @@ -55,7 +65,7 @@ $NetBSD: patch-ac,v 1.6 2000/06/20 21:50:20 jlam Exp $ # define OSF1 /* a.k.a Digital Unix */ # endif # define mach_type_known -@@ -221,7 +233,6 @@ +@@ -221,7 +236,6 @@ # endif # if defined(__NetBSD__) && defined(i386) # define I386 @@ -63,7 +73,7 @@ $NetBSD: patch-ac,v 1.6 2000/06/20 21:50:20 jlam Exp $ # define mach_type_known # endif # if defined(bsdi) && defined(i386) -@@ -573,6 +584,14 @@ +@@ -573,6 +587,14 @@ # define STACKBOTTOM ((ptr_t) 0xc0000000) # define DATAEND /* not needed */ # endif @@ -78,7 +88,7 @@ $NetBSD: patch-ac,v 1.6 2000/06/20 21:50:20 jlam Exp $ # endif # ifdef VAX -@@ -602,7 +621,6 @@ +@@ -602,7 +624,6 @@ # define MACH_TYPE "SPARC" # define ALIGNMENT 4 /* Required by hardware */ # define ALIGN_DOUBLE @@ -86,7 +96,7 @@ $NetBSD: patch-ac,v 1.6 2000/06/20 21:50:20 jlam Exp $ # ifdef SUNOS5 # define OS_TYPE "SUNOS5" extern int _etext; -@@ -674,8 +692,20 @@ +@@ -674,8 +695,20 @@ # ifdef OPENBSD # define OS_TYPE "OPENBSD" # define STACKBOTTOM ((ptr_t) 0xf8000000) @@ -107,7 +117,28 @@ $NetBSD: patch-ac,v 1.6 2000/06/20 21:50:20 jlam Exp $ # endif # ifdef I386 -@@ -1019,6 +1049,16 @@ +@@ -960,6 +993,20 @@ + # endif + # define DYNAMIC_LOADING + # endif ++# if defined(NETBSD) && defined(__MIPSEL__) ++# define ALIGNMENT 4 ++# define OS_TYPE "NETBSD" ++# define HEURISTIC2 ++# ifdef __ELF__ ++ extern int etext; ++# define DATASTART GC_data_start ++# define NEED_FIND_LIMIT ++# define DYNAMIC_LOADING ++# else ++# define DATASTART ((ptr_t) 0x10000000) ++# define STACKBOTTOM ((ptr_t) 0x7ffff000) ++# endif /* _ELF_ */ ++# endif + # endif + + # ifdef RS6000 +@@ -1019,6 +1066,16 @@ /* fp registers in some cases when the target is a 21264. The assembly */ /* code doesn't handle that yet, and version dependencies make that a */ /* bit tricky. Do the easy thing for now. */ |