Make gzdoom W^X compliant by changing +vm_jit default value on amd64
ok jca@
This commit is contained in:
parent
a0c09473b4
commit
7fa64e5a2d
@ -1,10 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2019/02/06 09:32:21 solene Exp $
|
||||
# $OpenBSD: Makefile,v 1.2 2019/02/12 18:07:11 solene Exp $
|
||||
|
||||
COMMENT = OpenGL engine for idTech 1 games like doom,hexen,heretic...
|
||||
|
||||
V = 3.7.1
|
||||
PKGNAME = gzdoom-${V}
|
||||
DISTNAME = gzdoom-src-g${V}
|
||||
REVISION = 0
|
||||
|
||||
CATEGORIES= games
|
||||
|
||||
|
16
games/gzdoom/patches/patch-src_scripting_vm_vmframe_cpp
Normal file
16
games/gzdoom/patches/patch-src_scripting_vm_vmframe_cpp
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-src_scripting_vm_vmframe_cpp,v 1.1 2019/02/12 18:07:11 solene Exp $
|
||||
|
||||
disable JIT so it's W^X compatible
|
||||
|
||||
Index: src/scripting/vm/vmframe.cpp
|
||||
--- src/scripting/vm/vmframe.cpp.orig
|
||||
+++ src/scripting/vm/vmframe.cpp
|
||||
@@ -49,7 +49,7 @@
|
||||
#endif
|
||||
|
||||
#ifdef ARCH_X64
|
||||
-CUSTOM_CVAR(Bool, vm_jit, true, CVAR_NOINITCALL)
|
||||
+CUSTOM_CVAR(Bool, vm_jit, false, CVAR_NOINITCALL)
|
||||
{
|
||||
Printf("You must restart " GAMENAME " for this change to take effect.\n");
|
||||
Printf("This cvar is currently not saved. You must specify it on the command line.");
|
Loading…
x
Reference in New Issue
Block a user