From 1c419eedc08f98e2939014b43933b6478627497d Mon Sep 17 00:00:00 2001 From: jlam Date: Thu, 20 Jul 2006 19:28:42 +0000 Subject: Fix a reversed test -- if the user specifies "CC" in the environment, then he really doesn't want to always use CC=gcc. This has no effect if you were previously setting CC=gcc anyway. Noted by Stuart Shelton. --- bootstrap/bootstrap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bootstrap') diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap index 673b9150084..9278a533212 100755 --- a/bootstrap/bootstrap +++ b/bootstrap/bootstrap @@ -1,6 +1,6 @@ #! /bin/sh -# $NetBSD: bootstrap,v 1.70 2006/07/20 15:13:10 jlam Exp $ +# $NetBSD: bootstrap,v 1.71 2006/07/20 19:28:42 jlam Exp $ # # # Copyright (c) 2001-2002 Alistair G. Crooks. All rights reserved. @@ -730,7 +730,7 @@ bmake=$prefix/bin/bmake case "$need_awk" in yes) echo_msg "Installing awk" copy_src ../lang/nawk/files awk - test -z "$CC" || CC=gcc # default to gcc if no compiler is specified + test -n "$CC" || CC=gcc # default to gcc if no compiler is specified run_cmd "(cd $wrkdir/awk && $bmake -f Makefile CC=\"${CC}\")" run_cmd "$install_sh -c -o $user -g $group -m 755 $wrkdir/awk/a.out $prefix/bin/nawk" run_cmd "$install_sh -c -o $user -g $group -m 644 $wrkdir/awk/nawk.1 $mandir/man1/nawk.1" -- cgit v1.2.3