Source-Changes-HG archive

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

[src/trunk]: src Honor HOST_{CC, CFLAGS, CPPFLAGS, LDFLAGS} passed in from the e...



details:   https://anonhg.NetBSD.org/src/rev/de4e63d46127
branches:  trunk
changeset: 520922:de4e63d46127
user:      tv <tv%NetBSD.org@localhost>
date:      Sat Jan 19 16:49:28 2002 +0000

description:
Honor HOST_{CC,CFLAGS,CPPFLAGS,LDFLAGS} passed in from the environment
when building nbmake.  Use the correct defaults if not set (HOST_CC=cc,
HOST_CFLAGS=-O).

diffstat:

 build.sh |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 4be59a62ab39 -r de4e63d46127 build.sh
--- a/build.sh  Sat Jan 19 14:56:02 2002 +0000
+++ b/build.sh  Sat Jan 19 16:49:28 2002 +0000
@@ -1,5 +1,5 @@
 #! /bin/sh
-#  $NetBSD: build.sh,v 1.39 2002/01/15 19:19:35 tv Exp $
+#  $NetBSD: build.sh,v 1.40 2002/01/19 16:49:28 tv Exp $
 #
 # Top level build wrapper, for a system containing no tools.
 #
@@ -233,7 +233,8 @@
        trap "exit 1" 1 2 3 15
        $runcmd cd $tmpdir
 
-       $runcmd $cwd/tools/make/configure || bomb "configure of nbmake failed"
+       $runcmd env CC="${HOST_CC-cc}" CPPFLAGS="${HOST_CPPFLAGS}" CFLAGS="${HOST_CFLAGS--O}" LDFLAGS="${HOST_LDFLAGS}" \
+               $cwd/tools/make/configure || bomb "configure of nbmake failed"
        $runcmd sh buildmake.sh || bomb "build of nbmake failed"
 
        make=$tmpdir/nbmake
@@ -342,7 +343,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.39 2002/01/15 19:19:35 tv Exp $
+# Generated from:  \$NetBSD: build.sh,v 1.40 2002/01/19 16:49:28 tv Exp $
 #
 
 EOF



Home | Main Index | Thread Index | Old Index