It would be nice to have gcc-config let you switch between your normal gcc compiler and MinGW32. I'll attach asap a patched ebuild and a env.d file. This means that if you want to cross compile an app you just need to: * gcc-config i386-mingw32msvc * ./configure --host=$TARGET --target=$TARGET To switch back to normal compiling: * gcc-config i686-pc-linux-gnu-3.4.2 (for example) * ./configure
Created attachment 40597 [details] This is the gcc-profile installed in /etc/env.d/gcc I'll test it thouroughly later, i'm rebuilding xmingw-gcc to test the new ebuild.
Created attachment 40608 [details] Modified ebuild for xmingw-gcc-3.4.1-r2 The attached ebuild seems to work, proceeding with producing and compiling a small test-case, with both c and c++. In the ebuild, for some reason I can't have "dosed" to work, so i used plain sed. Doing so saves a command, anyway, so I think it's ok. I'll tell ya if it works.
Works smoothly for me, tested the exe with wine.
Bug wranglers. Please see the metadata and if none exist then the ChangeLog when assigning bugs. Stefan Jones did the initial ebuild has been the only person to ever commit on xmingw-gcc.
Also, MinGW 3.4.2 is out.
Seems that gcc-config does not support exporting AS, NM etc. as when you switch back to another profile they are not unset. Also the /usr/bin/as etc. links are not updated. So I guess I cannot really add it to portage as it will not work properly with gcc-config ( and I will get a truck load of bug reports which I cannot fix) Sorry. Will add gcc-3.4.2 though ..