diff --git a/build.sh b/build.sh index 4a6748bfbeb7..7caef96b9dbb 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,5 @@ #! /usr/bin/env sh -# $NetBSD: build.sh,v 1.204 2009/03/06 16:29:40 apb Exp $ +# $NetBSD: build.sh,v 1.205 2009/03/09 06:25:51 apb Exp $ # # Copyright (c) 2001-2009 The NetBSD Foundation, Inc. # All rights reserved. @@ -178,7 +178,7 @@ initdefaults() uname_m=$(uname -m 2>/dev/null) uname_p=$(uname -p 2>/dev/null || echo "unknown") case "${uname_p}" in - ''|unknown|*[^a-z0-9]*) uname_p="${uname_m}" ;; + ''|unknown|*[^-_A-Za-z0-9]*) uname_p="${uname_m}" ;; esac id_u=$(id -u 2>/dev/null || /usr/xpg4/bin/id -u 2>/dev/null) @@ -1213,7 +1213,7 @@ createmakewrapper() eval cat </dev/null -_HOST_ARCH:= ${HOST_ARCH:tW:C/.*[^a-z0-9].*//:S/unknown//} +_HOST_ARCH:= ${HOST_ARCH:tW:C/.*[^-_A-Za-z0-9].*//:S/unknown//} .if empty(_HOST_ARCH) _HOST_ARCH!= uname -m .endif