[cfe-commits] [PATCH] Improved cross-compiling support for calling helper programs
joerg at britannica.bec.de
Thu Mar 17 18:51:01 PDT 2011
On Thu, Mar 17, 2011 at 11:11:01PM +0100, Joerg Sonnenberger wrote:
> I would expect a sane cross-compiling setup for other platforms to be
> quite similar. With some additional changes to make the look up for
> crt0.o and libgcc honour --sysroot, all that is needed for
> cross-compiliation is using "clang -ccc-host-triple i486--netbsdelf
> --sysroot $DESTDIR" or adding a symlink and using "i486--netbsdelf-clang
> --sysroot $DESTDIR".
Attached patch implements the missing parts of --sysroot. I'm not
completely happy of moving it to driver, but I wouldn't find an easier
way to get to the command line arguments early enough.
Again, other platforms likely want to have the same changes.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2768 bytes
Desc: not available
More information about the cfe-commits