From: Richard Jones <rich@annexia.org>
To: caml-list@inria.fr
Subject: OCaml 3.11.0+beta1 cross-compiler
Date: Fri, 14 Nov 2008 12:57:34 +0000 [thread overview]
Message-ID: <20081114125733.GA30050@annexia.org> (raw)
Despite bug 4303 (http://caml.inria.fr/mantis/view.php?id=4303) having
lead to some changes in the compiler, I'm still extremely perplexed
about how to build a cross-compiler.
I want an 'ocamlopt' to be a Linux native binary[1] that generates
Windows executables.
We have a cross-assembler and cross-linker (i686-pc-mingw32-as and
i686-pc-mingw32-gcc respectively). We also have a cross-compiler
version of flexdll.
My best attempt so far has been to generate config/{m,s}.h from
prepared Windows versions, and then build using the Unix Makefiles.
This gets some way, but produces an ocamlc which searches for files
using \ as a path separator, which is wrong and causes it to fail
looking for pervasives.cmi.
Anyone done this, or care to share any more hints?
Rich.
[1] Running stuff under Wine isn't acceptable and nor is installing
binaries.
--
Richard Jones
Red Hat
next reply other threads:[~2008-11-14 12:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-14 12:57 Richard Jones [this message]
2008-11-15 19:02 ` ANNOUNCE: Windows cross-compiler (was: Re: [Caml-list] OCaml 3.11.0+beta1 cross-compiler) Richard Jones
2008-11-16 4:20 ` Romain Beauxis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081114125733.GA30050@annexia.org \
--to=rich@annexia.org \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).