public inbox for gentoo-alt@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* [gentoo-alt] FW: x86-winnt
@ 2008-05-14  7:35 99% Markus Duft
  0 siblings, 0 replies; 1+ results
From: Markus Duft @ 2008-05-14  7:35 UTC (permalink / raw
  To: gentoo-alt

Ok, somehow this hasn't got through, I think I chose the wrong mail account
to send it :) here we go

> 
> Hi Folks!
> 
> I just committed some things to the Prefix tree, and must admit that in
> the rush I just forgot ( :) ) to discuss this on the list :(. So now I
> just wanted to tell all of you what I have done. Please just tell me if
> you feel I could have done things different/better.
> 
> Today I added the keyword x86-winnt in all places, and also the
> corresponding profiles. The purpose of this arch is, to get native
> windows binaries. Native in this case means, that the resulting
> binaries use the Microsoft windows libc (msvcrt) instead of the interix
> libc (libc.so). Also those binaries use a different subsystem (console
> or windows instead of posix), and can run completely without interix
> installed. The compiler used to create those binaries, does a lot of
> low-level magic, see [1].
> 
> To keep things separated, those native windows binaries are installed
> in a "child-prefix". First off all a "parent-prefix" is needed, which
> is an interix prefix right now (may be cygwin too in the future?). from
> there the winnt cross compiler is installed (parity). After that I
> manually created some wrappers right now, but I (and haubi) thought of
> screwing up the existing gcc-config and binutils-config packages to get
> those right (FYI I attached the two wrappers). I then symlinked
> /opt/gentoo.system/usr/i586-pc-winnt6.0/bin/{gcc,ld} to
> /opt/gentoo.system/usr/bin/i586-pc-winnt6.0-{gcc,g++,ld} (yes, both gcc
> and g++ point to the gcc wrapper).
> 
> Now the child-prefix can be set-up with bootstrap-prefix.sh like this:
> 
> $ CHOST=i586-pc-winnt6.0 EPREFIX=/opt/gentoo.winnt
> /opt/gentoo.system/usr/portage/scripts/bootstrap-prefix.sh tree
> $ CHOST=i586-pc-winnt6.0 EPREFIX=/opt/gentoo.winnt
> /opt/gentoo.system/usr/portage/scripts/bootstrap-prefix.sh setup
> 
> Now one can emerge winnt packages (only parity so far...):
> 
> $ CBUILD=i586-pc-winnt6.0 EPREFIX=/opt/gentoo.winnt emerge -v parity
> 
> I must admit, that I didn't use exactly the above steps for
> bootstrapping the tree, but instead as first step linked my existing
> /opt/gentoo.system/usr/portage dir to /opt/gentoo.winnt/usr/portage,
> this saved downloading and unpacking a snapshot (which right now won't
> work (without updating) anyway, since I just committed the necessary
> changes :))
> 
> Phew, that's it for now :) Any questions/comments?
> 
> [1] http://www.sf.net/projects/parity
> 
> Cheers, Markus

-- 
gentoo-alt@lists.gentoo.org mailing list



^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2008-05-14  7:35 99% [gentoo-alt] FW: x86-winnt Markus Duft

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox