Date: Mon, 22 Nov 2010 15:47:58 +0100 From: Erik Cederstrand <erik@cederstrand.dk> To: Dimitry Andric <dim@FreeBSD.org> Cc: freebsd-toolchain@freebsd.org Subject: Re: Clang and -frandom-seed Message-ID: <CBA471EA-DE89-4721-92CB-0FE044DA5C6D@cederstrand.dk> In-Reply-To: <4CEA7D0D.7030309@FreeBSD.org> References: <E135940E-F79C-4DFA-811D-18CCBF3C609E@cederstrand.dk> <4CE06C4F.7000002@FreeBSD.org> <FD61324A-1A22-4731-A563-B0BE8AB93069@cederstrand.dk> <4CE93959.7070600@FreeBSD.org> <1F5D7910-3AC6-4ACA-A7C5-EC28B9EABF52@cederstrand.dk> <4CEA7D0D.7030309@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail-2734-744949381 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Den 22/11/2010 kl. 15.24 skrev Dimitry Andric: > Well, src.conf is only picked up if you .include <bsd.own.mk>, or > another bsd.*.mk file that includes bsd.own.mk in turn. >=20 > 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. >=20 > 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... I was wondering, since the first thing usr.bin/clang/clang/Makefile does = is import bsd.own.mk. It then imports src/usr.bin/clang/clang.prog.mk = which again imports lib/clang/clang.build.mk. The Makefiles in lib/clang/[subdir] import lib/clang/clang.lib.mk, which = imports bsd.lib.mk, which in turn imports bsd.own.mk. But = lib/clang/clang.build.mk is imported first, which is probably why = src.conf isn't available in clang.build.mk. Would it be possible to swap = the two .includes around in lib/clang/clang.lib.mk? Erik= --Apple-Mail-2734-744949381--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CBA471EA-DE89-4721-92CB-0FE044DA5C6D>