On Sat, Oct 15, 2005 at 08:32:03PM -0700, Josh Triplett wrote: > Just out of curiosity, is it possible to provide multiple sysroots, such > that the resulting gcc looks in (for example) /usr/${ARCH1}-linux-gnu > for -march=(something in the $ARCH1 family) and /usr/${ARCH2}-linux-gnu > for -march=(something in the $ARCH2 family) ?
You need a fairly recent GCC patch for this. And some specs magic if you wanted to key it off of -march. > >>However, at the moment, this patch makes it possible to build at least a > >>plain cross-compiler for such architectures. > > > > I think it's worth doing it correctly. > > I agree. However, I also think it's worth having something that works > in the meantime; at the moment, it is not possible to use dpkg-cross and > the cross-compiler support in the current GCC source package to build a > Debian-packaged cross-compiler for any architecture currently using > biarch support. This patch does fix that problem; I'd certainly love to > see a better fix which makes use of --with-sysroot as you suggest. That's why I didn't suggest it originally. It still sounds to me like there's just a few, simple, unpacking-related limitations in dpkg-cross preventing you from using the compilers as-is. Anyway, it's up to Matthias. I don't do any work on Debian's gcc packaging so I don't get to bitch. -- Daniel Jacobowitz CodeSourcery, LLC -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]