tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: --sysroot support


On Mon, Mar 21, 2011 at 5:09 AM, Joerg Sonnenberger
<> wrote:
> Hi all,
> newer versions of binutils and GCC have a feature called sysroot,
> enabled by passing down --sysroot=$D. This essentially allows prefixes
> most builtin path names with $D. Attached patch enables this for
> src/tools. It also removes the installation of GCC's own headers since
> at least stddef.h doesn't work correctly without patches. The GCC
> changes are a bit more nasty since the configure option doesn't allow
> enabling it without also hard-coding a value.
> This allows compiling a hello world with
>        i486--netbsdelf-gcc --sysroot=$DESTDIR hello.c
> without having to worry about the many details like the combination of
> -nostdinc, -nostdlib, -isysroot, -B etc.
> A current build on Linux doesn't change at all with this patch, so I am
> reasonable sure that it doesn't create a regression. Patches for using
> this can follow later, but I would like to get the support into PCC
> first.
> Comments?
What do you mean by "a current build on Linux does not change at all"
? Last time I played with USER_H, I got tons of gcc's testsuite
regression. So running it would be a bare minimun.

 - Arnaud

> Joerg

Home | Main Index | Thread Index | Old Index