[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: don't make pkgsrc



分かりました。

m68k の ELF では m68k は define されていなくて __m68k__ が define され
ていますね。gnu/dist/toolchain/gcc/config/m68k/netbsd-elf.h:112 より

#define CPP_PREDEFINES "\
-D__m68k__ -D__NetBSD__ -D__ELF__ -D__KPRINTF_ATTRIBUTE__ -D__SVR4_ABI__ \
-D__motorola__ -Asystem(unix) -Asystem(NetBSD) -Acpu(m68k) -Amachine(m68k)"

となっていますので。

多分添付するパッチでイケルと思います。

	% cd /usr/pkgsrc/devel
	% patch -p0 < ...../boehm-gc.patch
	% cd boehm-gc
	% make

上林
Index: boehm-gc/distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/devel/boehm-gc/distinfo,v
retrieving revision 1.8
diff -u -r1.8 distinfo
--- boehm-gc/distinfo	2002/09/25 18:18:52	1.8
+++ boehm-gc/distinfo	2002/12/27 08:18:14
@@ -5,6 +5,6 @@
 SHA1 (patch-aa) = 6455a30d927f95e37788bca022eccb9801382478
 SHA1 (patch-ab) = a50c81392d8ca7ffd8451f0ab471ce2bf258c660
 SHA1 (patch-ac) = 38b22813cf2861dcbc9739d70f9fefe69acf3210
-SHA1 (patch-ad) = 5dd339437319caafa85ee5ab157e2fab01f05668
+SHA1 (patch-ad) = 5ba164d25eb9d98c3218e84d9b157310ae2fab11
 SHA1 (patch-ai) = aabb71b2e064d033290e595fa6addc9b779add15
 SHA1 (patch-aj) = 879beac6b0d674cfd162f3bc7cf87eb60c0fea3d
Index: boehm-gc/patches/patch-ad
===================================================================
RCS file: /cvsroot/pkgsrc/devel/boehm-gc/patches/patch-ad,v
retrieving revision 1.9
diff -u -r1.9 patch-ad
--- boehm-gc/patches/patch-ad	2002/09/25 18:18:52	1.9
+++ boehm-gc/patches/patch-ad	2002/12/27 08:18:14
@@ -1,7 +1,16 @@
-$NetBSD: patch-ad,v 1.9 2002/09/25 18:18:52 wiz Exp $
+$NetBSD$
 
---- include/private/gcconfig.h.orig	Mon Sep  9 14:56:06 2002
-+++ include/private/gcconfig.h	Mon Sep  9 14:57:33 2002
+--- include/private/gcconfig.h.orig	Wed Aug  7 03:49:22 2002
++++ include/private/gcconfig.h
+@@ -77,7 +77,7 @@
+ #    define SPARC
+ #    define mach_type_known
+ # endif
+-# if defined(NETBSD) && defined(m68k)
++# if defined(NETBSD) && (defined(m68k) || defined(__m68k__))
+ #    define M68K
+ #    define mach_type_known
+ # endif
 @@ -98,6 +98,10 @@
  #    endif
  #    define mach_type_known