$NetBSD: patch-at,v 1.4 2023/02/25 17:58:39 ryoon Exp $

--- config/install.sh.orig	2022-07-28 04:55:45.000000000 +0000
+++ config/install.sh
@@ -25,6 +25,7 @@ this=$0
 DEFAULT_SIZE=32
 case `uname -m` in
   x86_64) DEFAULT_SIZE=64 ;;
+  amd64) DEFAULT_SIZE=64 ;;
 esac
 
 # process options
@@ -82,7 +83,7 @@ cp config/preloads preloads.standard
 #
 MAKE=make
 
-SHELL=/bin/sh
+SHELL=@CONFIG_SHELL@
 vsay $this: Using shell $SHELL.
 
 #
@@ -395,7 +396,8 @@ case $OPSYS in
     fi
     ;;
   solaris)
-    MAKE=/usr/ccs/bin/make
+    # not in pkgsrc!
+    # MAKE=/usr/ccs/bin/make
     ;;
 esac
 
@@ -411,7 +413,7 @@ BOOT_FILES=sml.$BOOT_ARCHIVE
 if [ -x "$RUNDIR"/run.$ARCH-$OPSYS ]; then
     vsay $this: Run-time system already exists.
 else
-    "$CONFIGDIR"/unpack "$ROOT" runtime
+    #"$CONFIGDIR"/unpack "$ROOT" runtime
     cd "$BASEDIR"/runtime/objs
     echo $this: Compiling the run-time system.
     $MAKE -f $RT_MAKEFILE $EXTRA_DEFS
@@ -431,6 +433,7 @@ else
 	complain "$this: !!! Run-time system build failed for some reason."
     fi
 fi
+paxctl +am "$RUNDIR"/run.$ARCH-$OPSYS
 cd "$BASEDIR"
 
 #
