From 9609206ea89aedc1be57fb8c646cc0d46fdd543c Mon Sep 17 00:00:00 2001 From: jlam Date: Wed, 19 Jul 2006 15:27:37 +0000 Subject: Explicitly set the compiler used to build nawk. The Makefile was explicitly setting CC=cc, so override it on the bmake command line. We use the CC taken from the environment first, and default to "gcc" if CC is not set. --- bootstrap/bootstrap | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bootstrap') diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap index 37374486da5..665c7b1137b 100755 --- a/bootstrap/bootstrap +++ b/bootstrap/bootstrap @@ -1,6 +1,6 @@ #! /bin/sh -# $NetBSD: bootstrap,v 1.68 2006/07/19 15:01:23 jlam Exp $ +# $NetBSD: bootstrap,v 1.69 2006/07/19 15:27:37 jlam Exp $ # # # Copyright (c) 2001-2002 Alistair G. Crooks. All rights reserved. @@ -730,7 +730,8 @@ bmake=$prefix/bin/bmake case "$need_awk" in yes) echo_msg "Installing awk" copy_src ../lang/nawk/files awk - run_cmd "(cd $wrkdir/awk && $bmake -f Makefile)" + test -z "$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" echo "TOOLS_PLATFORM.awk?= $prefix/bin/nawk" >> ${MKCONF_EXAMPLE} -- cgit v1.2.3