From owner-freebsd-toolchain@FreeBSD.ORG Mon Nov 22 14:24:06 2010 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E4EDC1065673 for ; Mon, 22 Nov 2010 14:24:06 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id A13D38FC1D for ; Mon, 22 Nov 2010 14:24:06 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:7d0d:79cb:e810:42f5] (unknown [IPv6:2001:7b8:3a7:0:7d0d:79cb:e810:42f5]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id ACF175C5A; Mon, 22 Nov 2010 15:24:04 +0100 (CET) Message-ID: <4CEA7D0D.7030309@FreeBSD.org> Date: Mon, 22 Nov 2010 15:24:13 +0100 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.13pre) Gecko/20101118 Lanikai/3.1.7pre MIME-Version: 1.0 To: Erik Cederstrand References: <4CE06C4F.7000002@FreeBSD.org> <4CE93959.7070600@FreeBSD.org> <1F5D7910-3AC6-4ACA-A7C5-EC28B9EABF52@cederstrand.dk> In-Reply-To: <1F5D7910-3AC6-4ACA-A7C5-EC28B9EABF52@cederstrand.dk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-toolchain@freebsd.org Subject: Re: Clang and -frandom-seed X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Nov 2010 14:24:07 -0000 On 2010-11-22 15:05, Erik Cederstrand wrote: > .ifdef WITH_DETERMINISTIC > CXXFLAGS+=-frandom-seed=\"${.IMPSRC:S/^${.CURDIR}\///}\" > .endif > > to lib/clang/clang.build.mk > > and "WITH_DETERMINISTIC=true" to src.conf, but apparently the flag isn't being propagated to clang.build.mk. However it is being picked up if I pass it on the command-line: > > make WITH_DETERMINISTIC=true buildworld > > Why isn't the flag available in clang.build.mk? Well, src.conf is only picked up if you .include , or another bsd.*.mk file that includes bsd.own.mk in turn. So normally, you would have a Makefile in e.g. usr.bin/clang/clang, which includes bsd.own.mk, and then includes clang.build.mk. Only in that case the variables from src.conf are available. In contrast, make.conf is read from sys.mk, so its contents are always available. Same if you put variables on the command line; those even override *any* assignment in the Makefiles themselves...