From: "Sébastien Hinderer" <Sebastien.Hinderer@ens-lyon.org>
To: caml-list@yquem.inria.fr
Subject: Re: Compiling a library with findlib
Date: Mon, 14 May 2007 15:46:46 +0200 [thread overview]
Message-ID: <20070514134646.GA2839@zen> (raw)
In-Reply-To: <002d01c79615$ea3d3d30$6a7ba8c0@treble>
Dear David, dear all,
> > 1. Is it necessary to compile/install the lib;a and lib.so files ?
> Yes they are both needed:
> lib.so is the bytecode stub library --- so needed for any .cmo file that
> uses the C module
> lib.a is the native stub library --- linked in when you compile with
> ocamlopt for the same purpose
Okay, thanks a lot for this clarification.
> > 2. How can these files be produced (in addition to the .cma and .cmxa
> > files) on a system where ocamlfindlib is installed ?
> I'm a Windows native port user so detest Makefiles that use ocamlmklib
> because the Windows port doesn't include it!
Too bad :)
> The automation provided by ocamlmklib is IMHO pretty simplistic (see #18.10
> in the manual). ocamlmklib -verbose will tell you the commands it uses for
> your project - all the ocamlc/ocamlopt commands can then be prefixed with
> ocamlfind to import any packages you may need.
To me, the work done by ocamlmklib is not _that_ simplistic. Indeed, the
use of -verbose reveals that is calls commands like ar and ranlib, which
I'd prefer not tocall directly in the Makefile.
Also, I'd rather avoid depending on OCamlMakefile, to try to minimize
the dependencies and keep the compilationprocess assimple as possible.
> When doing ocamlfind install, you just need to include lib.so and lib.a with
> the files (r17.html#OCAMLFIND.INSTALL of the findlib docs explains how stub
> libraries are dealt with).
I will have a look to this section, thanks !
Cheers,
Sébastien.
next prev parent reply other threads:[~2007-05-14 13:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20070514100005.459F6BC70@yquem.inria.fr>
2007-05-14 10:52 ` [Caml-list] Polymorphic variant difference David Allsopp
2007-05-15 4:40 ` Jacques Garrigue
2007-05-15 9:45 ` David Allsopp
2007-05-15 10:21 ` Frédéric van der Plancke
2007-05-14 10:52 ` [Caml-list] Compiling a library with findlib David Allsopp
2007-05-14 13:46 ` Sébastien Hinderer [this message]
2007-05-14 7:06 Sébastien Hinderer
2007-05-14 17:37 ` [Caml-list] " Eric Cooper
2007-05-15 9:09 ` Sébastien Hinderer
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=20070514134646.GA2839@zen \
--to=sebastien.hinderer@ens-lyon.org \
--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