Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 51536

Summary: eclass for xmingw-based applications
Product: Gentoo Linux Reporter: Nguyen Thai Ngoc Duy (RETIRED) <pclouds>
Component: New packagesAssignee: Stefan Jones (RETIRED) <cretin>
Severity: enhancement CC: radek
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Package list:
Runtime testing required: ---

Description Nguyen Thai Ngoc Duy (RETIRED) gentoo-dev 2004-05-20 00:42:59 UTC
I would like to have an eclass for xmingw applications. Cross building using xmingw requires setting a lot of environment variables such as CC, CXX, LD ... Having an eclass would ease the task. In addition to setting variables, it could do somethine like passing proper parameters to configure script, patching libtool (if necessary) ...
This eclass may be used by xmingw-* packages them selves and other xmingw-based ebuilds (though i don't know whether cross compiled gtk+ ebuild is appreciated in portage)
Comment 1 Stefan Jones (RETIRED) gentoo-dev 2004-09-09 11:43:25 UTC
This is only a few lines and hightly dependant on your setup.
export PATH=/opt/xmingw/bin:/usr/lib/wine/bin:$PATH
export CC=i386-mingw32msvc-gcc
export CXX=i386-mingw32msvc-g++
export RANLIB=i386-mingw32msvc-ranlib
export AR=i386-mingw32msvc-ar
export AS=i386-mingw32msvc-as
export RC=i386-mingw32msvc-windres
export STRIP=i386-mingw32msvc-strip
export TARGET=i386-mingw32msvc

and very easy. If someone is advanced enough to want to crosscompile an app then let them provide there own!

I doubt cross compiled apps will make it into portage, if they do then I will add it, otherwise closing.

If I did make a script then I would have to maintain it and check it works. Varst amount of apps will not work and I can not prepared to maintain something I do not use / want.