diff options
author | triaxx <triaxx@pkgsrc.org> | 2019-02-02 04:17:26 +0000 |
---|---|---|
committer | triaxx <triaxx@pkgsrc.org> | 2019-02-02 04:17:26 +0000 |
commit | 3b54565e1316df27afd62e254d7552ae459000e0 (patch) | |
tree | 4f95ce94375c24e845194bc4574ac18fa43af642 | |
parent | ad9ff4946544e57c3fbdc623b7d4fbff00bf14f7 (diff) | |
download | pkgsrc-3b54565e1316df27afd62e254d7552ae459000e0.tar.gz |
set $CC when clang is detected in bootstrap
fix PR/53929
-rwxr-xr-x | bootstrap/bootstrap | 4 |
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) |