[ct-ng] mingw32 sysroot

Esben Haabendal eha@doredevelopment.dk
Wed Aug 11 15:46:00 GMT 2010


Hi

I am using the attached patch to be able to use crosstool-ng 1.8.0 to
build mingw32 cross compiler (gcc 4.5.1) with sysroot enabled.

The change in gcc.sh is rather ugly, I must admit, but it was so much
simpler to fix it here than in gcc, and saves me the trouble of having
to fixup all gcc versions. I believe the mingw/include behavior is
pretty much stable across gcc versions.

The changes to use CT_HEADERS_DIR instead of CT_SYSROOT_DIR/include as
header destination seems pretty obvious and clean to me, so I suggest
that something like this is applied.

I have not tested if this breaks non-sysroot builds, so if someone
caring for mingw32 would do that it would be nice.

P.S. Building i586-mingw32 -> powerpc-linux-gnu canadian cross compiler
with 3 times ct-ng builds using gcc-4.5.1 is pretty neat :-)

/Esben
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mingw-sysroot-headers-dir.patch
Type: text/x-patch
Size: 4657 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20100811/edc045c5/attachment.bin>
-------------- next part --------------
--
For unsubscribe information see http://sourceware.org/lists.html#faq


More information about the crossgcc mailing list