From nobody@FreeBSD.org  Tue Jul  9 18:09:00 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	by hub.freebsd.org (Postfix) with ESMTP id C650C25B
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  9 Jul 2013 18:09:00 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	by mx1.freebsd.org (Postfix) with ESMTP id 9F8E71155
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  9 Jul 2013 18:09:00 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r69I8x36038123
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 9 Jul 2013 18:08:59 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r69I8xDc038116;
	Tue, 9 Jul 2013 18:08:59 GMT
	(envelope-from nobody)
Message-Id: <201307091808.r69I8xDc038116@oldred.freebsd.org>
Date: Tue, 9 Jul 2013 18:08:59 GMT
From: dt71 <dt71@gmx.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: xlint should use $CC
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         180414
>Category:       bin
>Synopsis:       [patch] xlint(1) should use $CC
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 09 18:10:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Sun Apr 20 03:02:27 UTC 2014
>Originator:     dt71
>Release:        -CURRENT
>Organization:
>Environment:
FreeBSD  10.0-CURRENT FreeBSD 10.0-CURRENT #0 r252826M: Fri Jul  5 22:48:49 CEST 2013     root@:/usr/obj/usr/src/sys/CUSTOM  i386
>Description:
Building the world fails on a system where
- the cc binary is not available,
- the CC environment variable is not set, and
- the CC make variable is set to /path/to/clang.
>How-To-Repeat:
- Rename /usr/bin/cc to /usr/bin/hidden-cc,
- add "CC=/usr/bin/hidden-cc" to /etc/make.conf (but do not set the CC environment variable), and
- run "make buildworld".
>Fix:


>Release-Note:
>Audit-Trail:

From: dt71@gmx.com
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: misc/180414: xlint should use $CC
Date: Tue, 09 Jul 2013 20:17:46 +0200

 This is a multi-part message in MIME format.
 --------------000405000503060306030401
 Content-Type: text/plain; charset=UTF-8; format=flowed
 Content-Transfer-Encoding: 7bit
 
 Supplying the CC make variable as an environment variable sounds acceptable.
 
 --------------000405000503060306030401
 Content-Type: text/x-patch;
  name="xlint.patch"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
  filename="xlint.patch"
 
 Index: usr.bin/xlint/llib/Makefile
 ===================================================================
 --- usr.bin/xlint/llib/Makefile	(revision 253101)
 +++ usr.bin/xlint/llib/Makefile	(working copy)
 @@ -9,9 +9,9 @@
  CLEANFILES+= ${LIBS}
  
  llib-lposix.ln: llib-lposix
 -	${LINT} ${LINTFLAGS} -Cposix ${.ALLSRC}
 +	CC=${CC:Q} ${LINT} ${LINTFLAGS} -Cposix ${.ALLSRC}
  
  llib-lstdc.ln: llib-lstdc
 -	${LINT} ${LINTFLAGS} -Cstdc ${.ALLSRC}
 +	CC=${CC:Q} ${LINT} ${LINTFLAGS} -Cstdc ${.ALLSRC}
  
  .include <bsd.prog.mk>
 
 --------------000405000503060306030401--
>Unformatted:
