Build on loongson. From Brian Callahan, thanks!

While here, probably improve situation on alpha/sparc64.
This commit is contained in:
landry 2012-03-13 07:50:05 +00:00
parent f5d7b7873d
commit 1316094dee
3 changed files with 19 additions and 8 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.61 2012/02/24 16:36:00 landry Exp $
# $OpenBSD: Makefile,v 1.62 2012/03/13 07:50:05 landry Exp $
ONLY_FOR_ARCHS= ${GCC4_ARCHS}
@ -7,6 +7,7 @@ COMMENT = open source web browser engine for Gtk+
V = 1.6.3
DISTNAME = webkit-${V}
EPOCH = 0
REVISION = 0
CATEGORIES = www
EXTRACT_SUFX= .tar.xz

View File

@ -1,9 +1,9 @@
$OpenBSD: patch-Source_JavaScriptCore_wtf_Platform_h,v 1.2 2011/10/13 06:52:49 jasper Exp $
$OpenBSD: patch-Source_JavaScriptCore_wtf_Platform_h,v 1.3 2012/03/13 07:50:05 landry Exp $
Allow webkit to build and run on mips64
--- Source/JavaScriptCore/wtf/Platform.h.orig Mon Sep 26 22:54:57 2011
+++ Source/JavaScriptCore/wtf/Platform.h Fri Oct 7 10:03:03 2011
--- Source/JavaScriptCore/wtf/Platform.h.orig Sat Oct 15 07:26:50 2011
+++ Source/JavaScriptCore/wtf/Platform.h Tue Mar 13 08:47:48 2012
@@ -76,9 +76,14 @@
/* CPU(MIPS) - MIPS 32-bit */
@ -21,6 +21,15 @@ Allow webkit to build and run on mips64
#if defined(__MIPSEB__)
#define WTF_CPU_BIG_ENDIAN 1
#endif
@@ -295,7 +300,7 @@
#endif /* ARM */
-#if CPU(ARM) || CPU(MIPS) || CPU(SH4)
+#if CPU(ARM) || CPU(MIPS) || CPU(SH4) || CPU(MIPS64) || CPU(SPARC64)
#define WTF_CPU_NEEDS_ALIGNED_ACCESS 1
#endif
@@ -913,7 +918,8 @@
|| CPU(ALPHA) \
|| CPU(SPARC64) \

View File

@ -1,12 +1,13 @@
$OpenBSD: patch-Source_JavaScriptCore_wtf_dtoa_utils_h,v 1.1 2011/10/13 06:52:49 jasper Exp $
--- Source/JavaScriptCore/wtf/dtoa/utils.h.orig Mon Oct 10 10:19:48 2011
+++ Source/JavaScriptCore/wtf/dtoa/utils.h Mon Oct 10 10:21:27 2011
$OpenBSD: patch-Source_JavaScriptCore_wtf_dtoa_utils_h,v 1.2 2012/03/13 07:50:05 landry Exp $
Try to do better on sparc64/mips64*/alpha
--- Source/JavaScriptCore/wtf/dtoa/utils.h.orig Sat Sep 17 09:09:25 2011
+++ Source/JavaScriptCore/wtf/dtoa/utils.h Tue Mar 13 08:46:31 2012
@@ -49,7 +49,7 @@
defined(__ARMEL__) || \
defined(_MIPS_ARCH_MIPS32R2)
#define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
-#elif CPU(MIPS) || CPU(PPC) || CPU(PPC64) || OS(WINCE) || CPU(SH4)
+#elif CPU(MIPS) || CPU(PPC) || CPU(PPC64) || OS(WINCE) || CPU(SH4) || CPU(SPARC64)
+#elif CPU(MIPS) || CPU(PPC) || CPU(PPC64) || OS(WINCE) || CPU(SH4) || CPU(SPARC64) || CPU(MIPS64) || CPU(ALPHA)
#define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
#elif defined(_M_IX86) || defined(__i386__)
#if defined(_WIN32)