Invoke MAKEDEV.local via $HOST_SH (default ${HOST_SH:=sh}) instead of
hardcoded "sh" to avoid unexpected errors on cross build hosts in src/distrib/common/Makefile.makedev etc. Should fix PR toolchain/46537, ok apb@
This commit is contained in:
parent
100e1d86bf
commit
ac2c5cf13a
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh -
|
||||
# $NetBSD: MAKEDEV.tmpl,v 1.155 2012/05/26 00:36:15 riz Exp $
|
||||
# $NetBSD: MAKEDEV.tmpl,v 1.156 2012/06/05 13:20:01 tsutsui Exp $
|
||||
#
|
||||
# Copyright (c) 2003,2007,2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
|
@ -421,6 +421,7 @@ setup()
|
|||
{
|
||||
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/rescue
|
||||
|
||||
: ${HOST_SH:=sh}
|
||||
: ${TOOL_MKNOD:=mknod}
|
||||
: ${TOOL_MTREE:=mtree}
|
||||
: ${TOOL_PAX:=pax}
|
||||
|
@ -2092,9 +2093,9 @@ local)
|
|||
umask 0
|
||||
if [ -n "$count_nodes" ]; then
|
||||
count_nodes=$((count_nodes + \
|
||||
$(linecount "$(sh "$0.local" $opts -s all)") ))
|
||||
$(linecount "$("$HOST_SH" "$0.local" $opts -s all)") ))
|
||||
else
|
||||
sh "$0.local" $opts all
|
||||
"$HOST_SH" "$0.local" $opts all
|
||||
fi
|
||||
umask 077
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue