Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65656 - Adding gcc-config support for MinGW32 cross compiling
Summary: Adding gcc-config support for MinGW32 cross compiling
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All All
: High enhancement
Assignee: Stefan Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-28 03:39 UTC by Matteo Settenvini
Modified: 2004-10-14 10:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
This is the gcc-profile installed in /etc/env.d/gcc (i386-mingw32msvc.envd,819 bytes, text/plain)
2004-09-28 03:42 UTC, Matteo Settenvini
Details
Modified ebuild for xmingw-gcc-3.4.1-r2 (xmingw-gcc-3.4.1-r2.ebuild,2.96 KB, text/plain)
2004-09-28 06:32 UTC, Matteo Settenvini
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matteo Settenvini 2004-09-28 03:39:57 UTC
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
Comment 1 Matteo Settenvini 2004-09-28 03:42:42 UTC
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.
Comment 2 Matteo Settenvini 2004-09-28 06:32:04 UTC
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.
Comment 3 Matteo Settenvini 2004-09-28 06:45:36 UTC
Works smoothly for me, tested the exe with wine.
Comment 4 solar (RETIRED) gentoo-dev 2004-09-28 15:12:15 UTC
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.
Comment 5 Matteo Settenvini 2004-10-09 05:53:39 UTC
Also, MinGW 3.4.2 is out.
Comment 6 Stefan Jones (RETIRED) gentoo-dev 2004-10-14 10:20:58 UTC
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 ..