Building world with clang

Dimitry Andric dimitry at
Tue Aug 17 14:21:18 UTC 2010

On 2010-08-17 15:15, Alexander Kabaev wrote:
> Dimitry Andric <dimitry at> 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)

More information about the freebsd-current mailing list