Fix incorrect define GC_OPENBSD_THREADS on sparc64. Fix build graphics/asymptote

Noticed by and ok landry@
This commit is contained in:
shadchin 2014-02-09 06:01:54 +00:00
parent 6e74d6b1e7
commit 4c5c178241
2 changed files with 23 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.52 2013/10/11 23:48:23 naddy Exp $
# $OpenBSD: Makefile,v 1.53 2014/02/09 06:01:54 shadchin Exp $
COMMENT-main= garbage collection and memory leak detection for C and C++
COMMENT-atomic= access to hardware provided atomic memory operations
@ -7,6 +7,7 @@ VERSION= 7.2d
DISTNAME= gc-${VERSION}
PKGNAME-atomic= libatomic_ops-${VERSION}
PKGNAME-main= boehm-gc-${VERSION}
REVISION-main= 0
WRKDIST= ${WRKDIR}/gc-7.2
MULTI_PACKAGES= -main -atomic

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-include_gc_config_macros_h,v 1.3 2014/02/09 06:01:54 shadchin Exp $
--- include/gc_config_macros.h.orig Sat Jan 18 23:56:01 2014
+++ include/gc_config_macros.h Sat Jan 18 23:54:59 2014
@@ -87,14 +87,14 @@
# if defined(__mips) && !defined(__linux__)
# define GC_IRIX_THREADS
# endif
-# if defined(__sparc) && !defined(__linux__) \
+# if defined(__OpenBSD__)
+# define GC_OPENBSD_THREADS
+# elif defined(__sparc) && !defined(__linux__) \
|| defined(sun) && (defined(i386) || defined(__i386__) \
|| defined(__amd64__))
# define GC_SOLARIS_THREADS
# elif defined(__APPLE__) && defined(__MACH__)
# define GC_DARWIN_THREADS
-# elif defined(__OpenBSD__)
-# define GC_OPENBSD_THREADS
# elif !defined(GC_LINUX_THREADS) && !defined(GC_HPUX_THREADS) \
&& !defined(GC_OSF1_THREADS) && !defined(GC_IRIX_THREADS)
/* FIXME: Should we really need for FreeBSD and NetBSD to check */