From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 72568BBAF for ; Thu, 28 Oct 2010 12:53:46 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjABACfzyEzVpUAXi2dsb2JhbACTUI4NAQEBCgsKBw8FH78DhUgEilM X-IronPort-AV: E=Sophos;i="4.58,251,1286143200"; d="scan'208";a="76689408" Received: from mailout-de.gmx.net (HELO mail.gmx.net) ([213.165.64.23]) by mail4-smtp-sop.national.inria.fr with SMTP; 28 Oct 2010 12:53:28 +0200 Received: (qmail invoked by alias); 28 Oct 2010 10:53:22 -0000 Received: from ip-88-153-45-124.unitymediagroup.de (EHLO mail.gmx.net) [88.153.45.124] by mail.gmx.net (mp071) with SMTP; 28 Oct 2010 12:53:22 +0200 X-Authenticated: #20429361 X-Provags-ID: V01U2FsdGVkX185E0ck6QU526eR4aiWVZD2kw6mRvkjREOG/56/R9 J3F3JV7msvpEBl Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: caml-list@inria.fr Subject: Howto link cmas with Ocamlbuild Date: Thu, 28 Oct 2010 12:53:17 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Till Crueger" Message-ID: User-Agent: Opera Mail/10.63 (Linux) X-Y-GMX-Trusted: 0 X-Spam: no; 0.00; howto:01 compilation:01 compile:01 cma:01 cma:01 linking:02 dynamic:03 batteries:91 batteries:91 manually:08 flag:09 file:11 libraries:11 libraries:11 rules:11 Hi, I am working on a small project that is going to include a dynamic webserver using Ocsigen and Eliom. I am using Ocamlbuild for the compilation. The project is also going to use Batteries and Sexplib. This means I need to include Sexplib and Batteries within the .cma file for Ocsigen to find the libraries. However when I use the Myocamlbuild plugin for Batteries the rules for linking cmas wont use linkpkg flag. Right now I compile the full project using ocamlbuild and then I have to repeat the last step manually. Is there a better way, to get ocamlbuild to include the necessary libraries in the .cma? Thank you, Till