diff options
author | jlam <jlam@pkgsrc.org> | 2006-07-20 19:28:42 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-07-20 19:28:42 +0000 |
commit | 1c419eedc08f98e2939014b43933b6478627497d (patch) | |
tree | 2818be1cf10bd0e1d7637cd0665c0532f8c90bc4 /bootstrap | |
parent | f5ffb4620a3b5ce8a5c6aba7f91b36704a4d38df (diff) | |
download | pkgsrc-1c419eedc08f98e2939014b43933b6478627497d.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-x | bootstrap/bootstrap | 4 |
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" |