From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id JAA05803; Mon, 7 Oct 2002 09:26:05 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id JAA05295 for ; Mon, 7 Oct 2002 09:26:04 +0200 (MET DST) Received: from kurims.kurims.kyoto-u.ac.jp (kurims.kurims.kyoto-u.ac.jp [130.54.16.1]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g977Q2D18023 for ; Mon, 7 Oct 2002 09:26:03 +0200 (MET DST) Received: from localhost (suiren.kurims.kyoto-u.ac.jp [130.54.16.25]) by kurims.kurims.kyoto-u.ac.jp (8.9.3/3.7W) with ESMTP id QAA26338; Mon, 7 Oct 2002 16:25:53 +0900 (JST) To: alex@baretta.com Cc: caml-list@inria.fr Subject: Re: [Caml-list] ocamlmklib question In-Reply-To: <3DA0B0E7.6060707@baretta.com> References: <3DA0B0E7.6060707@baretta.com> X-Mailer: Mew version 1.94.2 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20021007162553V.garrigue@kurims.kyoto-u.ac.jp> Date: Mon, 07 Oct 2002 16:25:53 +0900 From: Jacques Garrigue X-Dispatcher: imput version 20000228(IM140) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk From: Alessandro Baretta > 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