blob: ba21ed952169a27f220570e6f7b213f93ea1baf8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
$NetBSD: patch-runtime_mono-wrapper.in,v 1.1 2021/03/03 12:05:41 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" "$@"
|