$NetBSD$

--- tool/bash/build.orig	Thu Jul 18 03:09:52 2002
+++ tool/bash/build	Mon Oct 14 03:49:09 2002
@@ -32,17 +32,17 @@
 
 # what compiler to use and what options
 
-CallC="gcc -c"
+CallC="${CC} -c -I${X11BASE}/include"
 CallC="${CallC} -Wall -Wmissing-prototypes -Wstrict-prototypes"
 CallC="${CallC} -O3"
 
 # what linker to use and what options
 
-LinkLine="gcc"
+LinkLine="${CC}"
 
 # what libraries to link with
 
-LinkLibs="-L/usr/X11R6/lib -lXext -lX11"
+LinkLibs="-L${X11BASE}/lib -Wl,-R${X11BASE}/lib -lXext -lX11"
 
 # set this to 1 for more speed if you have a PowerPC computer,
 # or other processor with big endian addressing that can
