From: Jacques Garrigue <garrigue@kurims.kyoto-u.ac.jp>
To: alex@baretta.com
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] ocamlmklib question
Date: Mon, 07 Oct 2002 16:25:53 +0900 [thread overview]
Message-ID: <20021007162553V.garrigue@kurims.kyoto-u.ac.jp> (raw)
In-Reply-To: <3DA0B0E7.6060707@baretta.com>
From: Alessandro Baretta <alex@baretta.com>
> How is ocamlmklib different from ocamlc -a?
ocamlmklib calls differents commands according to its parameters:
* ocamlc -a for .cmo's
* ocamlopt -a for .cmx's
* ar and ld -shared for .o's
It is intended to help you build libraries mixing caml and C code.
In particular it will automatically build both .a and .so forms for
the C code, and add needed linking options in calls to ocaml{c,opt} -a.
Another nice feature is for library developpers is that it
automatically handles the building of shared objects: just compile
your C code with 'ocamlc -c -ccopt "..." src.c', and use ocamlmklib
for linking, and your Makefile will work both on architectures with
and without dynamic loading.
For more details, you can just read the source.
Jacques Garrigue
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
prev parent reply other threads:[~2002-10-07 7:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-06 21:53 Alessandro Baretta
2002-10-07 7:25 ` Jacques Garrigue [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=20021007162553V.garrigue@kurims.kyoto-u.ac.jp \
--to=garrigue@kurims.kyoto-u.ac.jp \
--cc=alex@baretta.com \
--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