pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/bootstrap set $CC when clang is detected in bootstrap



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cc9f7408e7a0
branches:  trunk
changeset: 319180:cc9f7408e7a0
user:      triaxx <triaxx%pkgsrc.org@localhost>
date:      Wed Feb 06 17:38:54 2019 +0000

description:
set $CC when clang is detected in bootstrap

The commit in pkgsrc-2018Q4 is due to a mistake.

Sorry :(

diffstat:

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

diffs (22 lines):

diff -r 1cd086212c28 -r cc9f7408e7a0 bootstrap/bootstrap
--- a/bootstrap/bootstrap       Wed Feb 06 15:31:24 2019 +0000
+++ b/bootstrap/bootstrap       Wed Feb 06 17:38:54 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.261 2019/02/06 17:38:54 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