This is needed to make qt4 build with binutils 2.17, and fix a
potential runtime issue even when compiled with 2.15. Some of the
other ports that embed webkit code might need similar treatment.
I suppose this needs a REVISION bump, but I'm not sure how to do that
properly given that x11/qt4/Makefile has:
REVISION-main = 0
REVISION-mysql = 0
Any honts & ok's would be appreciated.
Index: patches/patch-src_3rdparty_webkit_Source_JavaScriptCore_jit_JITStubs_cpp
===================================================================
RCS file:
patches/patch-src_3rdparty_webkit_Source_JavaScriptCore_jit_JITStubs_cpp
diff -N patches/patch-src_3rdparty_webkit_Source_JavaScriptCore_jit_JITStubs_cpp
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_3rdparty_webkit_Source_JavaScriptCore_jit_JITStubs_cpp
13 May 2015 11:10:00 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- src/3rdparty/webkit/Source/JavaScriptCore/jit/JITStubs.cpp.orig Thu Apr
10 20:37:11 2014
++++ src/3rdparty/webkit/Source/JavaScriptCore/jit/JITStubs.cpp Wed May 13
11:03:44 2015
+@@ -79,7 +79,7 @@ namespace JSC {
+ #define THUMB_FUNC_PARAM(name)
+ #endif
+
+-#if (OS(LINUX) || OS(FREEBSD)) && CPU(X86_64)
++#if (OS(LINUX) || OS(FREEBSD) || OS(OPENBSD)) && CPU(X86_64)
+ #define SYMBOL_STRING_RELOCATION(name) #name "@plt"
+ #elif OS(DARWIN) || (CPU(X86_64) && COMPILER(MINGW) &&
!GCC_VERSION_AT_LEAST(4, 5, 0))
+ #define SYMBOL_STRING_RELOCATION(name) "_" #name