$NetBSD: patch-aa,v 1.7 2003/06/06 08:58:42 jtb Exp $

--- config/setup.sh.orig
+++ config/setup.sh
@@ -12,7 +12,7 @@
 
 # check parameters
 case "$GPX" in
-   Graphics)	XL='-L../../bin -lIgpx $(XLIBS)';;
+   Graphics)	XL='-L../../lib/icon -lIgpx $(XLIBS)';;
    NoGraphics)	XL= ;;
    *)		echo "$USAGE" 1>&2; exit 1;;
 esac
@@ -31,7 +31,7 @@
 # find and copy the context switch code.
 # use pthreads version if specified, or as a last resort.
 # by default, look for `uname -m`.[cs] and then rswitch.[cs].
-ARCH=`uname -m`
+ARCH=`uname -p`
 if [ "$CSW" = "pthreads" ]; then
    RSW=pthreads.c
    COCLEAN="#define CoClean"
