summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbootstrap/bootstrap4
1 files changed, 3 insertions, 1 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap
index f1a82fc803e..46a1c66aa68 100755
--- a/bootstrap/bootstrap
+++ b/bootstrap/bootstrap
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: bootstrap,v 1.260 2018/11/15 22:08:30 sevan Exp $
+# $NetBSD: bootstrap,v 1.260.2.1 2019/02/02 04:17:26 triaxx Exp $
#
# Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org>
# All rights reserved.
@@ -974,8 +974,10 @@ if [ "$compiler" = "" ] && [ x"$check_compiler" = x"yes" ]; then
# Clang pretends to be GCC, so we have to check it first.
if [ $compiler_is_clang -gt 0 ]; then
compiler="clang"
+ test -n "$CC" || CC=clang
elif [ $compiler_is_gnu -gt 0 ]; then
compiler="gcc"
+ test -n "$CC" || CC=gcc
else
case "$opsys" in
IRIX)