diff options
Diffstat (limited to 'devel')
-rw-r--r-- | devel/boehm-gc/Makefile | 4 | ||||
-rw-r--r-- | devel/boehm-gc/distinfo | 3 | ||||
-rw-r--r-- | devel/boehm-gc/patches/patch-ac | 37 |
3 files changed, 41 insertions, 3 deletions
diff --git a/devel/boehm-gc/Makefile b/devel/boehm-gc/Makefile index 750533094cc..1796350f312 100644 --- a/devel/boehm-gc/Makefile +++ b/devel/boehm-gc/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.63 2009/08/11 18:04:48 minskim Exp $ +# $NetBSD: Makefile,v 1.64 2009/11/10 18:35:13 wiz Exp $ DISTNAME= gc-7.1 PKGNAME= ${DISTNAME:S/gc/boehm-gc/} -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= devel MASTER_SITES= http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/ diff --git a/devel/boehm-gc/distinfo b/devel/boehm-gc/distinfo index e97924d8db5..1e9c3f4f014 100644 --- a/devel/boehm-gc/distinfo +++ b/devel/boehm-gc/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.36 2008/05/22 11:45:25 wiz Exp $ +$NetBSD: distinfo,v 1.37 2009/11/10 18:35:13 wiz Exp $ SHA1 (gc-7.1.tar.gz) = e84cba5d18f4ea5ed4e5fd3f1dc6a46bc190ff6f RMD160 (gc-7.1.tar.gz) = 9338c1128686395739e3acd9052a651d1dffffb2 Size (gc-7.1.tar.gz) = 1077714 bytes SHA1 (patch-aa) = 87a5bd5e83b0201d80a1e4e4ce6745c11b2e7cfe SHA1 (patch-ab) = 9b5133c7aa84e6824616e29613716a2fedd1d334 +SHA1 (patch-ac) = 15a277053946b1f4c826e20549ad9656dffadc9c diff --git a/devel/boehm-gc/patches/patch-ac b/devel/boehm-gc/patches/patch-ac new file mode 100644 index 00000000000..592386b081b --- /dev/null +++ b/devel/boehm-gc/patches/patch-ac @@ -0,0 +1,37 @@ +$NetBSD: patch-ac,v 1.13 2009/11/10 18:35:13 wiz Exp $ + +--- dyn_load.c.orig 2007-12-18 23:37:12.000000000 +0000 ++++ dyn_load.c +@@ -78,6 +78,8 @@ static int (*GC_has_static_roots)(const + #endif + + #if defined(NETBSD) ++# include <sys/param.h> ++# include <dlfcn.h> + # include <machine/elf_machdep.h> + # define ELFSIZE ARCH_ELFSIZE + #endif +@@ -499,6 +501,15 @@ GC_FirstDLOpenedLinkMap() + return(0); + } + if( cachedResult == 0 ) { ++#if defined(NETBSD) && defined(__NetBSD_Version__) && __NetBSD_Version__ >= 599001900 ++ struct link_map *lm = NULL; ++ int rv = dlinfo(RTLD_SELF, RTLD_DI_LINKMAP, &lm); ++ if (rv != 0) ++ return (0); ++ if (lm == NULL) ++ return (0); ++ cachedResult = lm; ++#else /* !(defined(NETBSD) && __NetBSD_Version__ >= 599001900) */ + int tag; + for( dp = _DYNAMIC; (tag = dp->d_tag) != 0; dp++ ) { + if( tag == DT_DEBUG ) { +@@ -508,6 +519,7 @@ GC_FirstDLOpenedLinkMap() + break; + } + } ++#endif /* !(defined(NETBSD) && __NetBSD_Version__ >= 599001900) */ + } + return cachedResult; + } |