From 5426352fee9403a88d52282073cb6c8878c3c30c Mon Sep 17 00:00:00 2001 From: mrg Date: Thu, 2 May 2019 02:51:01 +0000 Subject: [PATCH] on netbsd when defaulting to the native system, also derived MACHINE_ARCH from the uname -p value already fetched. this means eg, build.sh on evbarm will build the native platform rather than "earm" (armv5) -- which was the default even on arm64 hosts. --- build.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 46b622d5cd1c..528860161441 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,5 @@ #! /usr/bin/env sh -# $NetBSD: build.sh,v 1.331 2019/04/25 05:12:49 pgoyette Exp $ +# $NetBSD: build.sh,v 1.332 2019/05/02 02:51:01 mrg Exp $ # # Copyright (c) 2001-2011 The NetBSD Foundation, Inc. # All rights reserved. @@ -1416,6 +1416,7 @@ parseoptions() [ "${uname_s}" = "NetBSD" ] || bomb "MACHINE must be set, or -m must be used, for cross builds." MACHINE=${uname_m} + MACHINE_ARCH=${uname_p} fi if $opt_m && ! $opt_a; then # Settings implied by the command line -m option @@ -1936,7 +1937,7 @@ createmakewrapper() eval cat <