pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/pkgsrc-2018Q4]: pkgsrc/bootstrap set $CC when clang is detected in bo...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f3396466e8fc
branches:  pkgsrc-2018Q4
changeset: 318984:f3396466e8fc
user:      triaxx <triaxx%pkgsrc.org@localhost>
date:      Sat Feb 02 04:17:26 2019 +0000

description:
set $CC when clang is detected in bootstrap

fix PR/53929

diffstat:

 bootstrap/bootstrap |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r efdb5f9645ec -r f3396466e8fc bootstrap/bootstrap
--- a/bootstrap/bootstrap       Tue Jan 29 14:17:43 2019 +0000
+++ b/bootstrap/bootstrap       Sat Feb 02 04:17:26 2019 +0000
@@ -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@localhost>
 # All rights reserved.
@@ -974,8 +974,10 @@
        # 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)



Home | Main Index | Thread Index | Old Index