pkgsrc-Changes archive

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

CVS commit: [pkgsrc-2018Q4] pkgsrc/bootstrap



Module Name:    pkgsrc
Committed By:   triaxx
Date:           Sat Feb  2 04:17:26 UTC 2019

Modified Files:
        pkgsrc/bootstrap [pkgsrc-2018Q4]: bootstrap

Log Message:
set $CC when clang is detected in bootstrap

fix PR/53929


To generate a diff of this commit:
cvs rdiff -u -r1.260 -r1.260.2.1 pkgsrc/bootstrap/bootstrap

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/bootstrap/bootstrap
diff -u pkgsrc/bootstrap/bootstrap:1.260 pkgsrc/bootstrap/bootstrap:1.260.2.1
--- pkgsrc/bootstrap/bootstrap:1.260    Thu Nov 15 22:08:30 2018
+++ pkgsrc/bootstrap/bootstrap  Sat Feb  2 04:17:26 2019
@@ -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 @@ if [ "$compiler" = "" ] && [ x"$check_co
        # 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