openbsd-ports/devel/boehm-gc/patches/patch-include_private_gcconfig_h

70 lines
1.8 KiB
Plaintext
Raw Normal View History

$OpenBSD: patch-include_private_gcconfig_h,v 1.4 2003/01/15 22:48:09 marc Exp $
--- include/private/gcconfig.h.orig Tue Aug 6 11:49:22 2002
+++ include/private/gcconfig.h Thu Dec 5 21:33:05 2002
@@ -51,6 +51,10 @@
# define FREEBSD
# endif
+# if defined(__OpenBSD__)
+# define OPENBSD
+# endif
+
/* Determine the machine type: */
# if defined(__XSCALE__)
2002-09-12 02:47:16 -04:00
# define ARM32
@@ -270,6 +274,11 @@
# define POWERPC
2002-09-12 02:47:16 -04:00
# define mach_type_known
# endif
+# if defined(__OpenBSD__) && (defined(__powerpc__))
+# define POWERPC
+# define OPENBSD
+# define mach_type_known
+# endif
# if defined(__APPLE__) && defined(__MACH__) && defined(__i386__)
# define MACOSX
# define I386
@@ -726,6 +735,14 @@
# define DATASTART GC_data_start
# define DYNAMIC_LOADING
# endif
+# ifdef OPENBSD
+# define ALIGNMENT 4
+# define OS_TYPE "OPENBSD"
+# define HEURISTIC2
+ extern char etext;
+# define DATASTART GC_data_start
+# define DYNAMIC_LOADING
+# endif
# ifdef NOSYS
# define ALIGNMENT 4
# define OS_TYPE "NOSYS"
@@ -861,9 +878,9 @@
# endif
# ifdef OPENBSD
# define OS_TYPE "OPENBSD"
-# define STACKBOTTOM ((ptr_t) 0xf8000000)
- extern int etext[];
-# define DATASTART ((ptr_t)(etext))
+# define HEURISTIC2
+# define DATASTART GC_data_start
+# define DYNAMIC_LOADING
# endif
# ifdef NETBSD
# define OS_TYPE "NETBSD"
@@ -1393,6 +1410,14 @@
# define DATASTART GC_data_start
# define ELFCLASS32 32
# define ELFCLASS64 64
+# define ELF_CLASS ELFCLASS64
+# define CPP_WORDSZ 64
+# define DYNAMIC_LOADING
+# endif
+# ifdef OPENBSD
+# define OS_TYPE "OPENBSD"
+# define HEURISTIC2
+# define DATASTART GC_data_start
# define ELF_CLASS ELFCLASS64
# define DYNAMIC_LOADING
# endif