$NetBSD: patch-bc,v 1.2 2017/02/17 17:07:32 joerg Exp $

--- mono/mini/Makefile.in.orig	2012-02-01 20:48:03.000000000 +0000
+++ mono/mini/Makefile.in
@@ -1570,6 +1570,7 @@ genmdesc$(EXEEXT): $(genmdesc_OBJECTS) $
 mono$(EXEEXT): $(mono_OBJECTS) $(mono_DEPENDENCIES) 
 	@rm -f mono$(EXEEXT)
 	$(mono_LINK) $(mono_OBJECTS) $(mono_LDADD) $(LIBS)
+	${PAXCTL} +m mono$(EXEEXT)
 mono-sgen$(EXEEXT): $(mono_sgen_OBJECTS) $(mono_sgen_DEPENDENCIES) 
 	@rm -f mono-sgen$(EXEEXT)
 	$(mono_sgen_LINK) $(mono_sgen_OBJECTS) $(mono_sgen_LDADD) $(LIBS)
@@ -5035,15 +5036,15 @@ mbench: test.exe
 
 stat1: mono bench.exe
 	$(RUNTIME) --verbose --statfile stats.pl --regression bench.exe
-	perl viewstat.pl stats.pl
+	$(PERL) viewstat.pl stats.pl
 
 stat2: mono basic.exe
 	$(RUNTIME) --verbose --statfile stats.pl --regression basic.exe
-	perl viewstat.pl -e stats.pl
+	$(PERL) viewstat.pl -e stats.pl
 
 stat3: mono bench.exe
 	$(RUNTIME) --statfile stats.pl --ncompile 1000 --compile Tests:test_0_many_nested_loops bench.exe 
-	perl viewstat.pl stats.pl
+	$(PERL) viewstat.pl stats.pl
 
 docu: mini.sgm
 	docbook2txt mini.sgm
