diff --git a/bin/build.sh b/bin/build.sh
index 9be48e4a7f413995e6de435d100767904f87b38e..9309e6382455e976ade2ac5f133ce6f0e5b62196 100755
--- a/bin/build.sh
+++ b/bin/build.sh
@@ -191,7 +191,7 @@ if [ -z "$BASE" ]; then
           esac ;;
       SunOS)
 	  case `uname -m` in
-	    sun4u) BASE=sparc ;;
+	    sun4*) BASE=sparc ;;
 	    i86pc) BASE=sol-x86 ;;
 	  esac ;;
       Linux) BASE=linux ;;