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=3.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 mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id D7404BBAF for ; Mon, 17 Nov 2008 10:21:59 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvgCAIrGIEnAXQImgWdsb2JhbACTGD4BARYisDiJHwEDAQOCdoIN X-IronPort-AV: E=Sophos;i="4.33,617,1220220000"; d="scan'208";a="31515080" Received: from discorde.inria.fr ([192.93.2.38]) by mail4-smtp-sop.national.inria.fr with ESMTP; 17 Nov 2008 10:21:59 +0100 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id mAH9Lxt2004901 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Mon, 17 Nov 2008 10:21:59 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApMBAIrGIElIDtybimdsb2JhbACTGD4BAQEKCQwHDwWwNYkfAQMBA4J2gg0 X-IronPort-AV: E=Sophos;i="4.33,617,1220220000"; d="scan'208";a="17269329" Received: from fg-out-1718.google.com ([72.14.220.155]) by mail2-smtp-roc.national.inria.fr with ESMTP; 17 Nov 2008 10:21:58 +0100 Received: by fg-out-1718.google.com with SMTP id e21so2024576fga.25 for ; Mon, 17 Nov 2008 01:21:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer:sender; bh=c8Hy/5mVIFM32gJAkl6PHMG2kzdfjs3RdNmWwDnKkrM=; b=F+QsXeS1/FB5vIIb02T+Ln9y3VIQ3m7p/IvzS/c4SxLgMGHVKfLlu/a+cr8sObBLy6 VzS6ZdLZhEWlSOnybE3h2ItfWfVTPt5aYm8sXdy6xeWB0TdyvQk9tNsrq7zXW4vUhilN kghwPFkU4zV8ukusCCSM+qGicUbuJV5n2uE3E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer:sender; b=iKjaDwvw1rwdj/26B4/1Or6x0Yp+HXDAsD/JqE5D0GPNuTw4e9IvoCnJfAY/+Hj0fb gcyY9AC+VgvnYBTGs+b+u38/afqRaFYPhMTQxZota7an3kiQikD0saEh/Pz3vkA5omHz VuIAl8FkZQV+JlD9Vjh3ft1Hw2rDGJvDC+oqI= Received: by 10.86.72.15 with SMTP id u15mr919208fga.45.1226913718344; Mon, 17 Nov 2008 01:21:58 -0800 (PST) Received: from ?192.168.1.34? (181-114.0-85.cust.bluewin.ch [85.0.114.181]) by mx.google.com with ESMTPS id 4sm3846077fgg.4.2008.11.17.01.21.57 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 17 Nov 2008 01:21:57 -0800 (PST) Cc: caml-list Message-Id: <8C3D2D08-575C-4746-B130-80C1F8417948@erratique.ch> From: =?ISO-8859-1?Q?Daniel_B=FCnzli?= To: "Nicolas Pouillard" In-Reply-To: <1226867823-sup-903@ausone.local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v929.2) Subject: Re: [Caml-list] ocamlbuild and installed modules and libraries Date: Mon, 17 Nov 2008 10:20:56 +0100 References: <6C9617AA-8360-4857-9BC0-EB13ACBEF8AD@erratique.ch> <1226867823-sup-903@ausone.local> X-Mailer: Apple Mail (2.929.2) Sender: =?UTF-8?B?RGFuaWVsIELDvG56bGk=?= X-Miltered: at discorde with ID 492137B7.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; bunzli:01 buenzli:01 cmx:01 cmx:01 compile:01 caml-list:01 dependency:01 modules:02 modules:02 simplest:02 variables:02 defining:02 defining:02 native:03 native:03 Le 16 nov. 08 =E0 21:37, Nicolas Pouillard a =E9crit : > I'm a bit uncomfortable with this kind of dynamic or special tags. > > However the simplest solution to your problem is probably one of =20 > those: > > 1/ ocamlbuild -cflags -I,+xmlm,xmlm.cmx test.native You meant, > ocamlbuild -cflags -I,+xmlm -lflags -I,+xmlm,xmlm.cmx test.native I still think using ocamlbuild with installed libraries/modules is a =20 little bit problematic. If we have to do it that way [1] we are hard-=20 coding the location of the library in the plugin which doesn't feel =20 right. For me there should be (1) a way of defining the dependency on a =20 module/library (hopefully without needing a plugin) and (2) a way of =20 defining its location (-I). These two aspects should be decoupled. =20 This makes it easier to drive the installation process in build =20 scripts by using environment variables, i.e. I just need to specify the location of the module/library I depend on via a =20 suitable -I $DEPDIR to compile the sources. Best, Daniel [1] http://brion.inria.fr/gallium/index.php/Using_an_external_library