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.
This commit is contained in:
parent
ec6f4ba413
commit
79d62b7bc1
1 changed files with 3 additions and 2 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue