Date: Tue, 17 Aug 2010 11:04:06 -0400 From: Eitan Adler <lists@eitanadler.com> To: Daniel Nebdal <dnebdal@gmail.com> Cc: Dimitry Andric <dimitry@andric.com>, current@freebsd.org Subject: Re: Building world with clang Message-ID: <AANLkTinugt9jH3NDGKq02iojvmtwqZsYpsVcgBbXdGoi@mail.gmail.com> In-Reply-To: <AANLkTi=%2BMntj2KPSUXZj=1qCPCOMq9YORB2JhR6k9ztK@mail.gmail.com> References: <4C6A7357.8000606@andric.com> <19F5467B-6432-4531-BF04-62D8EB4F3093@gid.co.uk> <AANLkTi=wAhVDKX7vVd0Cds9zTSDQJ6vR%2BoyAbC-H_SK=@mail.gmail.com> <4C6A92E0.4050104@andric.com> <AANLkTi=%2BMntj2KPSUXZj=1qCPCOMq9YORB2JhR6k9ztK@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Aug 17, 2010 at 10:28 AM, Daniel Nebdal <dnebdal@gmail.com> wrote: > On Tue, Aug 17, 2010 at 3:47 PM, Dimitry Andric <dimitry@andric.com> wrot= e: >> On 2010-08-17 15:03, Daniel Nebdal wrote: >>>>> However, a disadvantage is that the built-in search paths of the >>>>> bootstrap compiler are not entirely disabled by using the -isysroot, = -B >>>>> and -L flags, >> ... >>> For clarification, did you (Dimitry, that is) mean >>> a) The paths are still there so they could resurface if some Makefile >>> doesn't specify those flags , or >>> b) they sometimes come into play even when using the appropriate flags? >> >> Any sub-makefiles would not have to specify those flags explicitly, >> since they were added to ${CC} and ${CXX}. >> >> But what I meant is that even if you specify those flags, the compiler >> still searches for headers and libraries in the base system. =C2=A0So if= some >> header is removed from /usr/src, for example, but is still available in >> /usr/include, it can be erroneously picked up during buildworld. >> > > Mmh, I just read through the in-detail description you gave in another > mail. It's a bit surprising that there isn't a simple and reliable way > to disable/replace all hardcoded paths, but I guess it doesn't come up > that often. what about -nostdinc ? Do not search the standard system directories for header files. Or will this also disable the command line equivalents ? --=20 Eitan Adler
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinugt9jH3NDGKq02iojvmtwqZsYpsVcgBbXdGoi>