From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: **** X-Spam-Status: No, score=4.1 required=5.0 tests=AWL,DNS_FROM_RFC_POST, DNS_FROM_SECURITYSAGE,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id ED3A7BBAF for ; Sun, 16 Nov 2008 19:23:05 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvgCAJ3zH0nAXQIngWdsb2JhbACTGD4BARYir0eJJAEDAQOCdoIN X-IronPort-AV: E=Sophos;i="4.33,614,1220220000"; d="scan'208";a="20007425" Received: from concorde.inria.fr ([192.93.2.39]) by mail1-smtp-roc.national.inria.fr with ESMTP; 16 Nov 2008 19:23:05 +0100 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id mAGIN5qi018763 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Sun, 16 Nov 2008 19:23:05 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApMBAOTzH0lIDtydimdsb2JhbACTGD4BAQEKCQwHDwWvSYkiAQMBA4J2gg0 X-IronPort-AV: E=Sophos;i="4.33,614,1220220000"; d="scan'208";a="19231074" Received: from fg-out-1718.google.com ([72.14.220.157]) by mail3-smtp-sop.national.inria.fr with ESMTP; 16 Nov 2008 19:23:04 +0100 Received: by fg-out-1718.google.com with SMTP id e21so1810464fga.25 for ; Sun, 16 Nov 2008 10:23:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date :x-mailer:sender; bh=uhYUVdE26HJIPLMMBrxm5V8JX5uDaKoOlhgcu8wWz3w=; b=taVX6hLIsbO4Ob8vlKuFsgXMkKN2QPfGEv8iIemL0eN3Ib2MNhPEAXWIkbkCZlWDlx wAK7yxCOSMnY/LWOntMSP6thwMTwhjj/ced9d31bAJvvN+3LB+W+mbU3pgwTLvIG2uOB jUbeGUELgdtl49rsU2tWwgI2nizk/Ltb2MCb8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:x-mailer:sender; b=duGGxvM3tbQs/CxMVoW/dYtMiJR8TaSVWA3tQ81QcDgWCmhINqaItzc+GG8P6mI6kx yoEcbUyRMv1zok/t/rcWzKD6EQOzjD2hKQXPmE5U6dXGx0LulUCrV9z8IePkOfPBw6eO fQ7/dDqosAavmRn8fdcvm+DQe+MOqBsVmCnfA= Received: by 10.86.84.5 with SMTP id h5mr1826289fgb.12.1226859784174; Sun, 16 Nov 2008 10:23:04 -0800 (PST) Received: from ?192.168.1.34? (13-26.77-83.cust.bluewin.ch [83.77.26.13]) by mx.google.com with ESMTPS id d6sm3779801fga.2.2008.11.16.10.23.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 16 Nov 2008 10:23:03 -0800 (PST) Message-Id: <6C9617AA-8360-4857-9BC0-EB13ACBEF8AD@erratique.ch> From: =?ISO-8859-1?Q?Daniel_B=FCnzli?= To: OCaml Mailing List Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Subject: ocamlbuild and installed modules and libraries Date: Sun, 16 Nov 2008 19:22:02 +0100 X-Mailer: Apple Mail (2.929.2) Sender: =?UTF-8?B?RGFuaWVsIELDvG56bGk=?= X-Miltered: at concorde with ID 49206509.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; bunzli:01 buenzli:01 lib:01 lib:01 overkill:01 modules:02 native:03 seems:03 module:03 module:03 daniel:04 daniel:04 installed:05 installed:05 specify:06 Hello, Is it possible to specify a single installed module (instead of a lib) for link time ? That is is there something like -lib but for module so that I can type : ocamlbuild -I +xmlm -mod xmlm test.native where test.ml uses the xmlm module And what about having special tags use_lib_$LIB and use_mod_$MOD that automatically create rules to use libraries $LIB.cm(x)a and module $MOD.cm(o|x) so that just the appropriate -I to find the files has to be specified. In most cases having to use a plugin just for that seems overkill. Or is there another way ? Best, Daniel