summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Pesavento <pesa@gentoo.org>2015-08-24 02:51:58 +0200
committerDavide Pesavento <pesa@gentoo.org>2015-08-24 03:28:21 +0200
commit9836d7172b640ba1ea9192785e08e6bf8ab7b20c (patch)
tree736a023f0c008b63b29438c32dbe4a586121d2b0 /dev-qt/qtdeclarative/files
parentnet-libs/wt: remove older broken version. (diff)
downloadgentoo-9836d7172b640ba1ea9192785e08e6bf8ab7b20c.tar.gz
gentoo-9836d7172b640ba1ea9192785e08e6bf8ab7b20c.tar.bz2
gentoo-9836d7172b640ba1ea9192785e08e6bf8ab7b20c.zip
dev-qt/qtdeclarative: add USE=jit, enabled by default.
The JIT cannot be used on hardened/PAX kernels. Let people disable it. Gentoo-Bug: 551318 Package-Manager: portage-2.2.20.1
Diffstat (limited to 'dev-qt/qtdeclarative/files')
-rw-r--r--dev-qt/qtdeclarative/files/qtdeclarative-5.4.2-disable-jit.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/dev-qt/qtdeclarative/files/qtdeclarative-5.4.2-disable-jit.patch b/dev-qt/qtdeclarative/files/qtdeclarative-5.4.2-disable-jit.patch
new file mode 100644
index 00000000000..7799ef71b7e
--- /dev/null
+++ b/dev-qt/qtdeclarative/files/qtdeclarative-5.4.2-disable-jit.patch
@@ -0,0 +1,18 @@
+diff --git a/src/qml/jsruntime/qv4global_p.h b/src/qml/jsruntime/qv4global_p.h
+index 4b08194..224ddb1 100644
+--- a/src/qml/jsruntime/qv4global_p.h
++++ b/src/qml/jsruntime/qv4global_p.h
+@@ -96,8 +96,13 @@ inline double trunc(double d) { return d > 0 ? floor(d) : ceil(d); }
+ # undef V4_ENABLE_JIT
+ #endif
+ #endif
+
++// Gentoo note: disable the JIT due to USE="-jit"
++#ifdef V4_ENABLE_JIT
++#undef V4_ENABLE_JIT
++#endif
++
+ // Do certain things depending on whether the JIT is enabled or disabled
+
+ #ifdef V4_ENABLE_JIT
+ #define ENABLE_YARR_JIT 1