$NetBSD: patch-runtime_mono-wrapper.in,v 1.2 2019/09/02 16:41:01 nia Exp $ Mark the mono executable as not MPROTECT safe during the build. --- runtime/mono-wrapper.in.orig 2019-07-18 07:46:08.000000000 +0000 +++ runtime/mono-wrapper.in @@ -8,4 +8,5 @@ then fi MONO_EXECUTABLE=${MONO_EXECUTABLE:-"$r/@mono_runtime@"} export MONO_CFG_DIR PATH +$PAXCTL +m $(readlink -f "$MONO_EXECUTABLE") 2>/dev/null | true exec "$r/libtool" --mode=execute "${MONO_EXECUTABLE_WRAPPER}" --config "@mono_cfg_dir@/mono/config" "$@"