-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 23.10.2013 17:48, Ruben Van Boxem wrote:
> With the advent of Cygwin64 and probably a small overhaul of the build
> system to accomodate MinGW-w64, I'm hoping it will be easier to build a
> cygwin cross-compiler.
> 
> I would like to ultimately end up with AUR packages for Cygwin, just like I
> provide for MinGW-w64, which would allow people developing on Arch to
> cross-compile from Linux. This is possible, as Fedora has the CygwinX
> thingie going on, and I used that to build toolchains.
> 
> The million dollar question is of course, how to do this (highly preferable
> from source)? I understand the Cygwin runtime is C++, so  bootstrapping
> isn't as simple as it sounds?
> 
> What I would imagine is this:
> 
> 1. build *-w64-mingw32 toolchains capable of C++ in /usr/*-w64-mingw32
> 2. build and install gcc C compiler for Cygwin using mingw-w64 headers?
> 3. build and install cygwin runtime with --host=*-w64-mingw32  in
> /usr/*-pc-cygwin
> 4. build rest of GCC linking to the cygwin runtime?
> 
> I know this looks flaky, and yes it probably is wrong. What is the proper
> build order for a full bootstrap on Linux? Additionally, if possible, I'd
> like to keep only one set of MinGW-w64 headers/libs, to prevent size bloat
> for no apparent reason.

There used to be a Cygwin bootstrap.sh script[1] that builds a Cygwin
cross-compiler and compiles a native W32 Cygwin with it, but i can't
find it anymore (FTP server it was located on had some rearrangements).

My sbuild MSYS2 bootstrap[2] is based on it though, so you may as well
just use that (i've modified it to build i686 instead of x86_64, but
shouldn't be hard to put x86_64 back in).

That's all i have. And don't ask me how it works, because to me it's
like magic.

[1] https://www.google.com/search?q=cygwin+"bootstrap.sh";
[2] https://www.gitorious.org/sbuild/sbuild/source/MSYS2-cross-compile

- -- 
O< ascii ribbon - stop html email! - www.asciiribbon.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)

iQEcBAEBAgAGBQJSZ+U1AAoJEOs4Jb6SI2CwKowIAI8Un9nbMPE/05hzdrgLKRw7
irXIOy/2KX8VZDHZltS/gQRv7YamnF8qgRpUfBUDWCNmLmJl8XXZYt82MRhrC2m0
JKAJBBMMPYCcRXQuMCOOkvjtcCYPKiaXuyX6xoTfxI1s9bJLPOxg2NRDysh7+cOs
rgM8eha9IbTY3QpzJV1lkY8GdPfuIvnShnc38kx0+486x+K1NgQOqUN51Bln/4dZ
pXOYudzbbJKMXW91n+KIr+JUrnJI+KHHaqsN+TuKEr33WmwOVx/42KN/XRkNw/aS
lBGOWYMN4T5er+Zo1MWhYasbiM3OyjnAXmdbswq6n/1J/Am2iu/z4ScotRLiH08=
=YwQ8
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to