Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Nov 2010 15:55:29 +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:  <9427F549-F8CF-418A-8FE4-4ED81D2942A6@cederstrand.dk>
In-Reply-To: <CBA471EA-DE89-4721-92CB-0FE044DA5C6D@cederstrand.dk>
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> <CBA471EA-DE89-4721-92CB-0FE044DA5C6D@cederstrand.dk>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail-2735-745400249
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii


Den 22/11/2010 kl. 15.47 skrev Erik Cederstrand:

> Den 22/11/2010 kl. 15.24 skrev Dimitry Andric:
>=20
>> 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...
>=20
> 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.
>=20
> 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?


If not, I added my CXXFLAGS to share/mk/bsd.own.mk which seems logical =
anyway since other C++ programs may benefit from it.

Erik=

--Apple-Mail-2735-745400249--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9427F549-F8CF-418A-8FE4-4ED81D2942A6>