From: Dario Teixeira <darioteixeira@yahoo.com>
To: caml-list@yquem.inria.fr
Subject: Forced linking and Ocamlbuild
Date: Mon, 5 Apr 2010 08:08:35 -0700 (PDT) [thread overview]
Message-ID: <892901.19224.qm@web111502.mail.gq1.yahoo.com> (raw)
Hi,
I'm using Ocamlbuild with the findlib plugin listed on the Wiki.
In this setting, how does one force a given module to always be
linked into the final executable, even if it's not referenced
anywhere? (I realise there's always the option of adding a
dummy reference, but I'm looking for a cleaner solution).
Note that the package is of course listed under "true" in the
top-level _tags file, but it's being pruned out from the actual
invocation of ocamlfind. Normally this is a sensible approach,
but in this case I want to force linking. Also, I've searched
into the (long) list of built-in tags, but couldn't find anything
resembling this purpose.
While I can of course explicitly change the myocamlbuild plugin
so that invocations of the compiler always append the module I
want to link, I wonder if there's not already a cleaner, more
general solution that I may have missed.
Thanks in advance!
Best regards,
Dario Teixeira
next reply other threads:[~2010-04-05 15:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-05 15:08 Dario Teixeira [this message]
2010-04-05 15:41 ` [Caml-list] " Daniel Bünzli
2010-04-05 16:02 ` Dario Teixeira
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=892901.19224.qm@web111502.mail.gq1.yahoo.com \
--to=darioteixeira@yahoo.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