[erlang-bugs] Erlang/OTP R11B-3 OpenBSD patches

Jon Olsson jon@REDACTED
Mon Feb 12 10:41:31 CET 2007


On Sun, Feb 04, 2007 at 11:03:34PM +0100, Jon Olsson wrote:
> Ok, I'll cook something up later this week perhaps.

Here's an updated patch, I'm also including the diff for the amd64
floating point exceptions issue.

 erts/configure.in         |    5 +++--
 erts/emulator/Makefile.in |    5 +++++
 2 files changed, 8 insertions(+), 2 deletions(-)

-------------- next part --------------
$OpenBSD: patch-erts_configure_in,v 1.1 2007/02/03 11:48:39 steven Exp $
--- erts/configure.in.orig	Mon Jan 29 13:53:26 2007
+++ erts/configure.in	Sun Feb 11 22:42:06 2007
@@ -304,6 +304,7 @@ SunOS)	case `uname -r` in
 Linux)	OPSYS=linux;;
 Darwin)	OPSYS=darwin;;
 FreeBSD) OPSYS=freebsd;;
+OpenBSD) OPSYS=openbsd;;
 esac
 ARCH=noarch
 case `uname -m` in
@@ -1855,14 +1856,14 @@ static __inline__ int check_fpe(double f
 
 #endif
 
-#if (defined(__linux__) && (defined(__i386__) || defined(__x86_64__) || defined(__sparc__) || defined(__powerpc__))) || (defined(__DARWIN__) && (defined(__i386__) || defined(__ppc__))) || (defined(__FreeBSD__) && (defined(__i386__) || defined(__x86_64__))) || (defined(__sun__) && defined(__x86_64__))
+#if (defined(__linux__) && (defined(__i386__) || defined(__x86_64__) || defined(__sparc__) || defined(__powerpc__))) || (defined(__DARWIN__) && (defined(__i386__) || defined(__ppc__))) || ((defined(__OpenBSD__) || defined(__FreeBSD__)) && (defined(__i386__) || defined(__x86_64__))) || (defined(__sun__) && defined(__x86_64__))
 
 #if defined(__linux__) && defined(__i386__)
 #include <asm/sigcontext.h>
 #elif defined(__FreeBSD__) && defined(__i386__)
 #include <sys/types.h>
 #include <machine/npx.h>
-#elif defined(__FreeBSD__) && defined(__x86_64__)
+#elif (defined(__OpenBSD__) || defined(__FreeBSD__)) && defined(__x86_64__)
 #include <sys/types.h>
 #include <machine/fpu.h>
 #endif
--- erts/emulator/Makefile.in.orig	Mon Jan 29 13:52:09 2007
+++ erts/emulator/Makefile.in	Sun Feb 11 22:38:23 2007
@@ -137,7 +137,12 @@ darwinCFLAGS=-DDARWIN
 noopsysCFLAGS=
 OPSYSCFLAGS=$($(OPSYS)CFLAGS)
 ARCH=@ARCH@
+
+ifeq ($(OPSYS),openbsd)
+ultrasparcCFLAGS=
+else
 ultrasparcCFLAGS=-Wa,-xarch=v8plusa
+endif
 ARCHCFLAGS=$($(ARCH)CFLAGS)
 
 ifdef HIPE_ENABLED


More information about the erlang-bugs mailing list