git: 0388b176339f - main - emulators/rpcs3: unbreak with kern.elf64.allow_wx=0

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Fri, 01 Apr 2022 18:40:02 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0388b176339f5394663840bad25d8cdcfd283611

commit 0388b176339f5394663840bad25d8cdcfd283611
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2022-04-01 17:22:09 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2022-04-01 18:39:29 +0000

    emulators/rpcs3: unbreak with kern.elf64.allow_wx=0
    
    $ rpcs3
    Verification failed
    (in file rpcs3/util/vm_native.cpp:192[:3], in function memory_commit) (errno=13=Permission denied)
    Thread id = 0x814a12000.
    Killed
    
    PR:             261173
    Submitted by:   Greg V (based on)
---
 emulators/rpcs3/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/emulators/rpcs3/Makefile b/emulators/rpcs3/Makefile
index 13a273bf4eb5..71f8d0ee2d21 100644
--- a/emulators/rpcs3/Makefile
+++ b/emulators/rpcs3/Makefile
@@ -44,7 +44,7 @@ CMAKE_ON=	CMAKE_SKIP_RPATH ${CURL FFMPEG FLATBUFFERS LIBPNG PUGIXML XXHASH:L:S/^
 CMAKE_ON+=	BUNDLE_SPEEX # only used by cubeb tests
 CMAKE_OFF=	USE_NATIVE_INSTRUCTIONS USE_PRECOMPILED_HEADERS
 LDFLAGS+=	-Wl,--as-needed # GLU
-ELF_FEATURES=	+noaslr:bin/${PORTNAME}
+ELF_FEATURES=	+noaslr,wxneeded:bin/${PORTNAME}
 
 OPTIONS_DEFINE=	ALSA EVDEV FAUDIO PULSEAUDIO JACK SNDIO VULKAN
 OPTIONS_DEFAULT=EVDEV FAUDIO PULSEAUDIO JACK SNDIO VULKAN