Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src - Define MAKE_MACHINE reasonably for the bootstrap make.



details:   https://anonhg.NetBSD.org/src/rev/8ed205b75541
branches:  trunk
changeset: 518428:8ed205b75541
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Nov 30 02:18:13 2001 +0000

description:
- Define MAKE_MACHINE reasonably for the bootstrap make.
- Don't unset IFS; some shells don't like that.  Instead save, and
  restore IFS.

diffstat:

 build.sh |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (37 lines):

diff -r 87d0cc427983 -r 8ed205b75541 build.sh
--- a/build.sh  Fri Nov 30 01:54:21 2001 +0000
+++ b/build.sh  Fri Nov 30 02:18:13 2001 +0000
@@ -1,5 +1,5 @@
 #! /bin/sh
-#  $NetBSD: build.sh,v 1.27 2001/11/26 05:57:33 jmc Exp $
+#  $NetBSD: build.sh,v 1.28 2001/11/30 02:18:13 thorpej Exp $
 #
 # Top level build wrapper, for a system containing no tools.
 #
@@ -65,7 +65,8 @@
 
 # Emulate "mkdir -p" for systems that have an Old "mkdir".
 mkdirp () {
-       IFS=/; set -- $@; unset IFS
+       oifs=$IFS
+       IFS=/; set -- $@; IFS=$oifs
        _d=
        if [ -z "$1" ]; then _d=/; shift; fi
 
@@ -230,6 +231,7 @@
        $runcmd cd $tmpdir
 
        $runcmd ${HOST_CC-cc} ${HOST_CFLAGS} -DMAKE_BOOTSTRAP \
+               -DMAKE_MACHINE=\"`uname -m`\" \
                -o nbmake -I$cwd/usr.bin/make \
                $cwd/usr.bin/make/*.c $cwd/usr.bin/make/lst.lib/*.c \
                || bomb "build of nbmake failed"
@@ -321,7 +323,7 @@
 eval cat <<EOF $makewrapout
 #! /bin/sh
 # Set proper variables to allow easy "make" building of a NetBSD subtree.
-# Generated from:  \$NetBSD: build.sh,v 1.27 2001/11/26 05:57:33 jmc Exp $
+# Generated from:  \$NetBSD: build.sh,v 1.28 2001/11/30 02:18:13 thorpej Exp $
 #
 
 EOF



Home | Main Index | Thread Index | Old Index