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 3C1EABBAF for ; Mon, 5 Apr 2010 17:08:39 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah0CAEmZuUtDww+LkGdsb2JhbACDEYwSgX2BAIk+AQEBAQkJDAcRAx+mAzeBb4QRiHkBBAQBgSaCbm4EgyQ X-IronPort-AV: E=Sophos;i="4.51,366,1267398000"; d="scan'208";a="60226651" Received: from web111502.mail.gq1.yahoo.com ([67.195.15.139]) by mail4-smtp-sop.national.inria.fr with SMTP; 05 Apr 2010 17:08:38 +0200 Received: (qmail 19233 invoked by uid 60001); 5 Apr 2010 15:08:35 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1270480115; bh=6ZBwnfXsW/Vk6QqV6CHRUUNQi0bLP8GvHnMlxR/OG/4=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=OkAjN8eQ2dJVw78A/yBtPKxUDaM2RUUUR2Mo4LMrQ2lNPFbu0dlRC81twSkuunEeecjcvKOj+w+yppGTNUmFosRW5qJnj5EC5tlrc7paxPEfINC+stlBLrGaKdXNSNccRAmnPl3vjAABfVN/HOzsK/+Xet3/waLft198o/Hkdl8= DomainKey-Signature:a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=FU7+psxvy7jmoVziGpHD/vDe3V+bWYoVMoUB3PnRwzRVrWFu9pc/6+DNHa1NayzVI6Nv8slCEHR1Ki1fJKTRLrS7IKrOJ22J5X65OIuDj5NIhETPLtIhf/fsSzf2FcCRFX+aTnDuw4PyctOsbNjsoJYPjlYQe9fAsyWYYuB7qws=; Message-ID: <892901.19224.qm@web111502.mail.gq1.yahoo.com> X-YMail-OSG: QarB7J4VM1mknkvY7w.5rr6teO62AajvVpbLjLkBYy8.6NT o6jLlW80NIlKCGs4AA2iIEMfCwMUWzTbqZ46Z1d9ldaJ250p94Sodz.J0KxC zwUV5j._PJkHwj6nJKPwAi366QrMVuHq7D.34OTKRp.TawbKAK1.TrFbec0e qJkIH9V6pjrRbmR4U2ySLOK.LH7NOGrYaMGpCBXEteXeKnnl8.GCQKwgnPVK NM9F2WGA0RNCCymZ1MjeOK2.OVcFuWeUvUFAwuovgxpEzRI7ztfKQ4DdRbJb FkpejZhHhgCyMG1uWOCwMVbWACkGOUkzzySEPqJ10kkSu.olglMGXYUk- Received: from [213.205.71.51] by web111502.mail.gq1.yahoo.com via HTTP; Mon, 05 Apr 2010 08:08:35 PDT X-Mailer: YahooMailClassic/10.0.8 YahooMailWebService/0.8.100.260964 Date: Mon, 5 Apr 2010 08:08:35 -0700 (PDT) From: Dario Teixeira Subject: Forced linking and Ocamlbuild To: caml-list@yquem.inria.fr MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam: no; 0.00; findlib:01 wiki:01 invocation:01 ocamlfind:01 resembling:01 compiler:01 explicitly:02 append:02 referenced:02 linking:02 linking:02 executable:03 module:03 module:03 top-level:03 Hi,=0A=0AI'm using Ocamlbuild with the findlib plugin listed on the Wiki.= =0AIn this setting, how does one force a given module to always be=0Alinked= into the final executable, even if it's not referenced=0Aanywhere? (I rea= lise there's always the option of adding a=0Adummy reference, but I'm looki= ng for a cleaner solution).=0A=0ANote that the package is of course listed = under "true" in the=0Atop-level _tags file, but it's being pruned out from = the actual=0Ainvocation of ocamlfind. Normally this is a sensible approach= ,=0Abut in this case I want to force linking. Also, I've searched=0Ainto t= he (long) list of built-in tags, but couldn't find anything=0Aresembling th= is purpose.=0A=0AWhile I can of course explicitly change the myocamlbuild p= lugin=0Aso that invocations of the compiler always append the module I=0Awa= nt to link, I wonder if there's not already a cleaner, more=0Ageneral solut= ion that I may have missed.=0A=0AThanks in advance!=0ABest regards,=0ADario= Teixeira=0A=0A=0A=0A