From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 343CC7F734 for ; Tue, 22 Sep 2015 09:10:06 +0200 (CEST) IronPort-PHdr: 9a23:1AqMNxFgEXSkskUDBt5jUZ1GYnF86YWxBRYc798ds5kLTJ75rs2wAkXT6L1XgUPTWs2DsrQf27aQ6PGrADVbqb+681k8M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aJBzzOEJPK/jvHcaK1oLsh7z0oMyYOlwTzBOGIppMbzyO5T3LsccXhYYwYo0Q8TDu5kVyRuJN2GlzLkiSlRuvru25/Zpk7jgC86l5r50IeezAcq85Vb1VCig9eyBwvZWz9EqLcQzayXIWSGQbllJzCAjI9hzgFsP+uyHgt+d5njKRPcDsQKocVjGr7qMtQxjt3nQpLTk8pUTekNBxiup3rTesoxh4i9rRaZuJNfxyc6bQedcdbWVEV8dVESdGB9XvPMM0E+MdMLMA/MHGrFwUoE77XFH0CQ== Authentication-Results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=martindemello@gmail.com; spf=Pass smtp.mailfrom=martindemello@gmail.com; spf=None smtp.helo=postmaster@mail-vk0-f51.google.com Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of martindemello@gmail.com) identity=pra; client-ip=209.85.213.51; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="martindemello@gmail.com"; x-sender="martindemello@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of martindemello@gmail.com designates 209.85.213.51 as permitted sender) identity=mailfrom; client-ip=209.85.213.51; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="martindemello@gmail.com"; x-sender="martindemello@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-vk0-f51.google.com) identity=helo; client-ip=209.85.213.51; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="martindemello@gmail.com"; x-sender="postmaster@mail-vk0-f51.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0B5AACX/gBWmzPVVdFdhFIPBr1MAQ2HdAKBMwc4FAEBAQEBAQEBEAEBAQEBBgsLCSEugh2CCAEBAwESER0BGx0BAwELBgUEAQY3AgIhAQERAQUBHAYTIod2AQMKCKkdgTA+MYtGgWyCeYoSChknDVaEEAEBAQEBAQEDAQEBAQEBARUBBQ6GZYR9glCCPQeCaYFDBY1yh3OLGoFvk12FdBIjgRcfAQGCRoIdHjOJbQEBAQ X-IPAS-Result: A0B5AACX/gBWmzPVVdFdhFIPBr1MAQ2HdAKBMwc4FAEBAQEBAQEBEAEBAQEBBgsLCSEugh2CCAEBAwESER0BGx0BAwELBgUEAQY3AgIhAQERAQUBHAYTIod2AQMKCKkdgTA+MYtGgWyCeYoSChknDVaEEAEBAQEBAQEDAQEBAQEBARUBBQ6GZYR9glCCPQeCaYFDBY1yh3OLGoFvk12FdBIjgRcfAQGCRoIdHjOJbQEBAQ X-IronPort-AV: E=Sophos;i="5.17,571,1437429600"; d="scan'208";a="148161035" Received: from mail-vk0-f51.google.com ([209.85.213.51]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/AES128-GCM-SHA256; 22 Sep 2015 09:09:58 +0200 Received: by vkhf67 with SMTP id f67so640177vkh.1 for ; Tue, 22 Sep 2015 00:09:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=SyAk4HQYar9usz0pDA1SSwLF2afI57oO0hrKKSquoVo=; b=PDK3kDUmhBaiqX6G4Ja/x5cbouLsoy6AIGEoSzUj4D6W46nWZTrO43n8miaVXnTjlY g/kGW1/VFOrHtMkz2sPSL0ebShjYnr2TBOInXUSH98K8Ygh3sB1p298HE+rcyl1ecPdX yd2px32oFuFXlEiu0tg8QMxpyC55FAZ90e9m7PsSTuDsXNFLq+ywFJiHO1fqBA3LXZh1 xqSv78pappFH/dd12XT6I0N+WDBwXrZsjzY9OEHAPIAt4gWY1byHRpUdbv7Ao2biVgEA pLxLTNcYLRI5bO3oztbsAnWUu7EEXa6wtI48yqbGsKBNeVdCAcYG7DGuYjAnsigB6RUN VT0Q== MIME-Version: 1.0 X-Received: by 10.31.134.193 with SMTP id i184mr16025989vkd.64.1442905797802; Tue, 22 Sep 2015 00:09:57 -0700 (PDT) Received: by 10.103.51.142 with HTTP; Tue, 22 Sep 2015 00:09:57 -0700 (PDT) In-Reply-To: References: Date: Tue, 22 Sep 2015 00:09:57 -0700 Message-ID: From: Martin DeMello To: Gabriel Scherer Cc: OCaml List Content-Type: multipart/alternative; boundary=001a114115e685c162052050afe4 Subject: Re: [Caml-list] building and using a library in a subdirectory --001a114115e685c162052050afe4 Content-Type: text/plain; charset=UTF-8 On Mon, Sep 21, 2015 at 11:58 PM, Gabriel Scherer wrote: > > I don't (yet) need dynamic linking; my current main aim with the .mllib > setup is to specify the package dependencies for each plugin in its > own > section of the _tags file, and not have a long list of every plugin's > dependencies in the main module. > > Well, that doesn't quite work: you need to have the ocamlfind packages > passed to the command linking the final executable. > > I suppose changing > <**/puz.*>: ... > to > <**/puz.*> or : ... > could work, as this line seems to pass all the libraries flags. Isn't there any way with a .cmxa to compile the dependencies into a library and then just have the library as a link-time dependency for the main project? I can imagine things getting pretty messy once I have several plugins and have to concatenate all their package deps into the file.* tags line. martin --001a114115e685c162052050afe4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On M= on, Sep 21, 2015 at 11:58 PM, Gabriel Scherer <gabriel.scherer@gma= il.com> wrote:
> I don't (yet) need dynamic linking; my current main aim with= the .mllib setup is to specify the package dependencies for each plugin in= its > own section of the _tags file, and not have a long list of every = plugin's dependencies in the main module.

Well, that doesn't quite work: you need to have the ocamlfind pa= ckages
passed to the command linking the final executable.

I suppose changing
=C2=A0 <**/puz.*>: ...
to
=C2=A0 <**/puz.*> or <file.*>: ...
could work, as this line seems to pass all the libraries flags.

Isn't there any way with a .cmxa to compile the de= pendencies into a library and then just have the library as a link-time dep= endency for the main project? I can imagine things getting pretty messy onc= e I have several plugins and have to concatenate all their package deps int= o the file.* tags line.

martin
--001a114115e685c162052050afe4--