pkgsrc/x11/qt5-qtwebkit/patches/patch-Source_WTF_wtf_Platform.h
maya 0dc60a82f0 qtwebkit: don't disable JIT on netbsd, declare functions like linux.
this works well enough to browse javascript websites with otter-browser,
which needed paxctl +m, although I didn't try it without these changes.

XXX this package might be crashing from feeding bogus values to
posix_memalign.
2018-08-01 15:01:08 +00:00

34 lines
898 B
C

$NetBSD: patch-Source_WTF_wtf_Platform.h,v 1.4 2018/08/01 15:01:08 maya Exp $
* Use system's malloc for NetBSD, do not use fastmalloc from qt5,
fix segfault of qtwebkit consumers
* Disable DISASSEMBLER on Linux. Unresolved symbols as not building
UDis86Disassembler.cpp for some reason.
--- Source/WTF/wtf/Platform.h.orig 2017-06-04 20:16:06.000000000 +0000
+++ Source/WTF/wtf/Platform.h
@@ -691,6 +694,12 @@
#define USE_SYSTEM_MALLOC 1
#endif
+/* Workaround an issue with fastMalloc on NetBSD */
+#if OS(NETBSD)
+#define USE_SYSTEM_MALLOC 1
+#define ENABLE_ASSEMBLER 1
+#endif
+
#define ENABLE_DEBUG_WITH_BREAKPOINT 0
#define ENABLE_SAMPLING_COUNTERS 0
#define ENABLE_SAMPLING_FLAGS 0
@@ -746,6 +754,10 @@
#define USE_UDIS86 1
#endif
+#if OS(LINUX)
+#define ENABLE_DISASSEMBLER 0
+#endif
+
#if !defined(ENABLE_DISASSEMBLER) && USE(UDIS86)
#define ENABLE_DISASSEMBLER 1
#endif