summaryrefslogtreecommitdiff
path: root/devel/boehm-gc
diff options
context:
space:
mode:
authortoshii <toshii@pkgsrc.org>2004-06-28 15:45:18 +0000
committertoshii <toshii@pkgsrc.org>2004-06-28 15:45:18 +0000
commit1feba075909d37691dfeca9f785b082f17e0f6c1 (patch)
treed055e52f150f1977c34a9aa52862985776705a95 /devel/boehm-gc
parent54bfdaecc626963c16cab1e687cd9140ebf2ffe9 (diff)
downloadpkgsrc-1feba075909d37691dfeca9f785b082f17e0f6c1.tar.gz
Make this buildable on NetBSD/amd64.
Changes are quite mechanical, but "gctest" appears to work...
Diffstat (limited to 'devel/boehm-gc')
-rw-r--r--devel/boehm-gc/Makefile4
-rw-r--r--devel/boehm-gc/distinfo4
-rw-r--r--devel/boehm-gc/patches/patch-ad36
3 files changed, 35 insertions, 9 deletions
diff --git a/devel/boehm-gc/Makefile b/devel/boehm-gc/Makefile
index 3296220d887..2388a554706 100644
--- a/devel/boehm-gc/Makefile
+++ b/devel/boehm-gc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.38 2004/04/03 10:26:14 hubertf Exp $
+# $NetBSD: Makefile,v 1.39 2004/06/28 15:45:18 toshii Exp $
#
DISTNAME= gc6.2
@@ -12,8 +12,6 @@ HOMEPAGE= http://www.hpl.hp.com/personal/Hans_Boehm/gc/
COMMENT= Garbage collection and memory leak detection for C and C++
-NOT_FOR_PLATFORM= *-*-amd64 *-*-x86_64
-
PKG_INSTALLATION_TYPES= overwrite pkgviews
GNU_CONFIGURE= YES
diff --git a/devel/boehm-gc/distinfo b/devel/boehm-gc/distinfo
index 74c18c88b82..4bbbb0503ec 100644
--- a/devel/boehm-gc/distinfo
+++ b/devel/boehm-gc/distinfo
@@ -1,11 +1,11 @@
-$NetBSD: distinfo,v 1.19 2004/04/03 10:26:14 hubertf Exp $
+$NetBSD: distinfo,v 1.20 2004/06/28 15:45:18 toshii Exp $
SHA1 (gc6.2.tar.gz) = ef17f8f56e9853ef41808fdf5c4c7bf2f78f1fec
Size (gc6.2.tar.gz) = 750883 bytes
SHA1 (patch-aa) = 90e279f7efba12194c2fbcecfe62bd902d842654
SHA1 (patch-ab) = 8e85e84a5408dfab53d19bb84cc25140331906b6
SHA1 (patch-ac) = 38b22813cf2861dcbc9739d70f9fefe69acf3210
-SHA1 (patch-ad) = d04a825837c969091c17ec4fb6f82a167726d1f4
+SHA1 (patch-ad) = 4d1b10f7f2bcef3c69897c5c4cd02c8ae9c8413c
SHA1 (patch-ae) = 6e99458a388b5a408e03c133f9b1fdc8b170e87f
SHA1 (patch-af) = ff3902115a8cc330916500db1169ce67f8354700
SHA1 (patch-ag) = 540f937741280e2adb85e4c93c39065d5bedeb96
diff --git a/devel/boehm-gc/patches/patch-ad b/devel/boehm-gc/patches/patch-ad
index d44f239b8c4..e93893895f9 100644
--- a/devel/boehm-gc/patches/patch-ad
+++ b/devel/boehm-gc/patches/patch-ad
@@ -1,6 +1,7 @@
-$NetBSD: patch-ad,v 1.16 2004/05/07 12:06:47 cjep Exp $
---- include/private/gcconfig.h.orig Tue Jun 17 04:01:23 2003
-+++ include/private/gcconfig.h Fri Apr 2 23:43:18 2004
+$NetBSD: patch-ad,v 1.17 2004/06/28 15:45:18 toshii Exp $
+
+--- include/private/gcconfig.h.orig 2003-06-17 11:01:23.000000000 +0900
++++ include/private/gcconfig.h
@@ -85,7 +85,7 @@
# define SPARC
# define mach_type_known
@@ -30,7 +31,18 @@ $NetBSD: patch-ad,v 1.16 2004/05/07 12:06:47 cjep Exp $
# if defined(mips) || defined(__mips) || defined(_mips)
# define MIPS
# if defined(nec_ews) || defined(_nec_ews)
-@@ -601,8 +605,14 @@
+@@ -220,6 +224,10 @@
+ # define X86_64
+ # define mach_type_known
+ # endif
++# if defined(__NetBSD__) && defined(__x86_64__)
++# define X86_64
++# define mach_type_known
++# endif
+ # if defined(LINUX) && (defined(__ia64__) || defined(__ia64))
+ # define IA64
+ # define mach_type_known
+@@ -601,8 +609,14 @@
# ifdef NETBSD
# define OS_TYPE "NETBSD"
# define HEURISTIC2
@@ -47,3 +59,19 @@ $NetBSD: patch-ad,v 1.16 2004/05/07 12:06:47 cjep Exp $
# endif
# ifdef LINUX
# define OS_TYPE "LINUX"
+@@ -1794,6 +1808,15 @@
+ # define PREFETCH_FOR_WRITE(x) \
+ __asm__ __volatile__ (" prefetchw %0": : "m"(*(char *)(x)))
+ # endif
++# ifdef NETBSD
++# define OS_TYPE "NETBSD"
++# define HEURISTIC2
++# define DATASTART GC_data_start
++# define ELFCLASS32 32
++# define ELFCLASS64 64
++# define ELF_CLASS ELFCLASS64
++# define DYNAMIC_LOADING
++# endif
+ # endif
+
+ #if defined(LINUX) && defined(REDIRECT_MALLOC)