How to organize bootstrapping phase of cross-compiler?
mojca at macports.org
Tue Nov 7 22:35:39 UTC 2017
A while ago I packaged MinGW's gcc and left out one optional step, but
I need that one now.
The procedure is as follows:
(a) install a bunch of dependencies
(b) compile gcc to phase 1 (I currently call that port
(c) install some more files (i686-w64-mingw32-crt)
At that point I need gcc, but either phase 1, 2 or a fully fledged
compiler would do
I now use:
(d) compile gcc to phase 2 (I currently call that port i686-w64-mingw32-gcc)
=> new optional steps
(e) install winpthreads library
At that point I need gcc, but either phase 2 or full compiler would do
(f) compile gcc again: now we have a complete installation
What would be suitable names for intermediate phases and how could I
write the dependency for winpthreads in a proper way?
More information about the macports-dev