Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Aug 2010 16:21:27 +0200
From:      Dimitry Andric <dimitry@andric.com>
To:        Alexander Kabaev <kabaev@gmail.com>
Cc:        current@freebsd.org
Subject:   Re: Building world with clang
Message-ID:  <4C6A9AE7.3060704@andric.com>
In-Reply-To: <20100817091515.4510ebfd@kan.dnsalias.net>
References:  <4C6A7357.8000606@andric.com> <20100817091515.4510ebfd@kan.dnsalias.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2010-08-17 15:15, Alexander Kabaev wrote:
> Dimitry Andric <dimitry@andric.com> wrote:
... 
>> 1) The "isysroot" method: build a regular version of clang, and make
>>    sure WMAKEENV contains something like:
>>
>>    CC="${CC} -isysroot ${WORLDTMP} -B${WORLDTMP}/usr/lib/ \
>>                                    -L${WORLDTMP}/usr/lib/"
>>
>> 2) The "tools-prefix" method: build a special version of clang, that
>>    has its default search paths for headers, startup objects and
>>    libraries modified, to look for everything under ${WORLDTMP}.
...
> Does method 1) work fine with 'make buildenv'? I doubt that. I would
> strongly suggest we should not lose this feature. I do not like the
> idea of having to depend on -isystem in CFLAGS in such an environment. 

I have not tested make buildenv with this method, but since ${CC} is
modified, not ${CFLAGS}, there is a reasonable chance that it might
work. :)

Note a similar method is already being using for the build32 stage on
amd64, where ${CC} has a bunch of flags (including -isystem, -L and -B)
appended.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C6A9AE7.3060704>