From mel@datakitty.lan.rachie.is-a-geek.net  Thu Mar 15 20:26:50 2012
Return-Path: <mel@datakitty.lan.rachie.is-a-geek.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 743F2106566B
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 15 Mar 2012 20:26:50 +0000 (UTC)
	(envelope-from mel@datakitty.lan.rachie.is-a-geek.net)
Received: from datakitty.lan.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27])
	by mx1.freebsd.org (Postfix) with ESMTP id 2B0188FC19
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 15 Mar 2012 20:26:49 +0000 (UTC)
Received: from datakitty.lan.rachie.is-a-geek.net (localhost [127.0.0.1])
	by datakitty.lan.rachie.is-a-geek.net (8.14.5/8.14.5) with ESMTP id q2FKQnhU030807
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 15 Mar 2012 12:26:49 -0800 (AKDT)
	(envelope-from mel@datakitty.lan.rachie.is-a-geek.net)
Received: (from mel@localhost)
	by datakitty.lan.rachie.is-a-geek.net (8.14.5/8.14.5/Submit) id q2FKQmQq030806;
	Thu, 15 Mar 2012 12:26:48 -0800 (AKDT)
	(envelope-from mel)
Message-Id: <201203152026.q2FKQmQq030806@datakitty.lan.rachie.is-a-geek.net>
Date: Thu, 15 Mar 2012 12:26:48 -0800 (AKDT)
From: Mel Flynn <rflynn@acsalaska.net>
Reply-To: Mel Flynn <rflynn@acsalaska.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch] Fix clang-only build for buildworld.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         166159
>Category:       bin
>Synopsis:       [patch] Fix clang-only build for buildworld.
>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:   Thu Mar 15 20:30:07 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Mel Flynn
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
>Environment:
System: FreeBSD datakitty.lan.rachie.is-a-geek.net 8.2-STABLE FreeBSD 8.2-STABLE #6 r230977: Sun Feb 5 06:20:11 AKST 2012 mel@datakitty.lan.rachie.is-a-geek.net:/data/obj/data/RELENG_8/src/sys/GENERIC amd64

>Description:
Variables that are not set in the environment but for example in makefiles
or make.conf are not export to shell commands.

This makes compilation of usr.bin/xlint/llib fail. It's the only remaining
obstacle I found, with a 8.2 host and 9-stable gcc-less jail.

>How-To-Repeat:

Have a base WITHOUT_GCC WITH_CLANG.
make buildworld.

>Fix:

--- fix-clang-build-releng_9.patch begins here ---
Index: usr.bin/xlint/llib/Makefile
===================================================================
--- usr.bin/xlint/llib/Makefile	(revision 232964)
+++ usr.bin/xlint/llib/Makefile	(working copy)
@@ -9,9 +9,9 @@
 CLEANFILES+= ${LIBS}
 
 llib-lposix.ln: llib-lposix
-	${LINT} ${LINTFLAGS} -Cposix ${.ALLSRC}
+	env CC=${CC} ${LINT} ${LINTFLAGS} -Cposix ${.ALLSRC}
 
 llib-lstdc.ln: llib-lstdc
-	${LINT} ${LINTFLAGS} -Cstdc ${.ALLSRC}
+	env CC=${CC} ${LINT} ${LINTFLAGS} -Cstdc ${.ALLSRC}
 
 .include <bsd.prog.mk>
--- fix-clang-build-releng_9.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:
