[erlang-bugs] Erlang/OTP R11B-3 OpenBSD patches
Jon Olsson
jon@REDACTED
Fri Feb 2 18:19:38 CET 2007
Hi, I sent these patches earlier to patches@, but they didn't reach the
mailing list so I'm reposting them to erlang-bugs@REDACTED
All patches are against R11B-3.
/ Jon
This fixes a bug on OpenBSD/sparc64 build - this needs to be conditionalized for
OpenBSD if these are the right flags for other sparc64 OS'en.
--- erts/emulator/Makefile.in.orig Mon Jan 29 13:52:09 2007
+++ erts/emulator/Makefile.in Wed Jan 31 17:25:33 2007
@@ -137,7 +137,7 @@ darwinCFLAGS=-DDARWIN
noopsysCFLAGS=
OPSYSCFLAGS=$($(OPSYS)CFLAGS)
ARCH=@ARCH@
-ultrasparcCFLAGS=-Wa,-xarch=v8plusa
+ultrasparcCFLAGS=
ARCHCFLAGS=$($(ARCH)CFLAGS)
ifdef HIPE_ENABLED
This fixes a hang in the configure script on OpenBSD/amd64 similiar to the FreeBSD one.
--- erts/configure.in.orig Wed Jan 31 17:36:19 2007
+++ erts/configure.in Wed Jan 31 17:37:08 2007
@@ -1855,14 +1855,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__) && (defi
ned(__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__) || defi
ned(__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
----- End forwarded message -----
--
Jon
More information about the erlang-bugs
mailing list