From: ygrek <ygrekheretix@gmail.com>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Linking order with Ocamlbuild
Date: Sat, 11 Jul 2009 10:46:18 +0300 [thread overview]
Message-ID: <20090711104618.05ad073e.ygrekheretix@gmail.com> (raw)
In-Reply-To: <904590.82265.qm@web111511.mail.gq1.yahoo.com>
[-- Attachment #1: Type: text/plain, Size: 691 bytes --]
On Tue, 7 Jul 2009 09:11:23 -0700 (PDT)
Dario Teixeira <darioteixeira@yahoo.com> wrote:
> <**/main.native>: pkg_a, pkg_b, pkg_c
> <**/*.ml>: pkg_b, pkg_c
>
> Which is neither particularly pretty nor actually working. Namely, during
> the linking stage, ocamlbuild is invoking "-package b -package a". This is
> in the wrong order, and different from the one I specified. Is there any
> straightforward way to fix it?
As far as I observed ocamlbuild preserves the same order of libraries at the linking stage
that was used when introducing those libraries in myocamlbuild.ml (namely with ocaml_lib).
So try to sort the output of find_packages as you need.
--
ygrek
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
prev parent reply other threads:[~2009-07-11 7:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-07 16:11 Dario Teixeira
2009-07-11 7:46 ` ygrek [this message]
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=20090711104618.05ad073e.ygrekheretix@gmail.com \
--to=ygrekheretix@gmail.com \
--cc=caml-list@yquem.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