summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorjlam <jlam>2006-07-20 19:28:42 +0000
committerjlam <jlam>2006-07-20 19:28:42 +0000
commite3a372701b88ef431fecd0b2c7ef690024fbc4f0 (patch)
tree2818be1cf10bd0e1d7637cd0665c0532f8c90bc4 /bootstrap
parent8824617eb3aee8a2c087a8a9b7238a7df0f36443 (diff)
downloadpkgsrc-e3a372701b88ef431fecd0b2c7ef690024fbc4f0.tar.gz
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.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap/bootstrap4
1 files changed, 2 insertions, 2 deletions
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"