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=1.7 required=5.0 tests=AWL,DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST 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 CC802BBAF for ; Tue, 7 Jul 2009 18:11:25 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuIHADcQU0pDww/BdWdsb2JhbACXdYEaAQwKCwcTpE+BGpAlAQUDAYQPBQ X-IronPort-AV: E=Sophos;i="4.42,363,1243807200"; d="scan'208";a="32641952" Received: from web111511.mail.gq1.yahoo.com ([67.195.15.193]) by mail1-smtp-roc.national.inria.fr with SMTP; 07 Jul 2009 18:11:24 +0200 Received: (qmail 83818 invoked by uid 60001); 7 Jul 2009 16:11:23 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1246983083; bh=QNNRLZ6kD2Fa3eYxPWWTsaFnMNn5lbRIhM02Ud1rLNg=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=M3nkYQVWlDscltySKO5yuC/LEF6uL+sbF2LS6hJBFY6VopewbIDYB06ifWBfz3dhhQwsNJ5Yr8Cd6G8i6ODzSfIL88Nb1GBG5NwAs/rgHF1i3CPrIMRH6HdAlew41Qg/uqGKAU/F5JvZr25QzfN4Hx/LEqR7IJCMHs/T9OV9aYs= 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=qZZtoFyURP8EQ2Ti0SQxS/OQ0jq2fz99XnBKzQ3Ind7AIPYuHSw+dXlO1NHdUio6ttJh7EWTaNzWKZibxlqK3+wgBKaNeG/4We1RVsgdvoznQyLyGhaR5mc8WRM2uA8epvbXGfOJlF8HVKaGi3V8qFHOUf8rJMepbg7pzutMEdA=; Message-ID: <904590.82265.qm@web111511.mail.gq1.yahoo.com> X-YMail-OSG: B3geG10VM1notOYqo3k1M3jf2HaOG4PJoEy7fceH2JD6QTM1eYN6_WnDAH7MRqkYynKu.WkX2eBlihcQSKejC3sS0heoSNClyZdKgvpmSi8ETcPVZsDv2_MPSTXzvfxzPSGIYli1nRQHYR73nzrkShDrewcdSugaUG2aAntobqVV24.8yn52olVmD1FU6SGEWj8tdSyYBbfj6qoSX9iYq4T9tXBmvLCz0EKVyoqNZWgATnIEn_UqtVAlrYUyWLJIuIpNdPYHY6aWKWHM3._BoWoJoSBzhLrQv5SOlwzAAQ7qIrZ9fw0OQztkDv9kQkU7TbRSRPuwaMFsgYro.pm7EX9XjOtv1Hu9v2KLZ2I- Received: from [213.205.70.192] by web111511.mail.gq1.yahoo.com via HTTP; Tue, 07 Jul 2009 09:11:23 PDT X-Mailer: YahooMailClassic/5.4.17 YahooMailWebService/0.7.289.15 Date: Tue, 7 Jul 2009 09:11:23 -0700 (PDT) From: Dario Teixeira Subject: Linking order with 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; ocamlfind:01 wiki:01 compilation:01 -package:01 -package:01 cheers:01 ocamlfind:01 namely:02 linking:02 linking:02 native:03 latter:03 explicit:04 fix:05 inria:06 Hi,=0A=0AI am using the custom myocamlbuild.ml for ocamlfind support that i= s listed=0Ain the Ocamlbuild wiki [1]. I would like to separate the list o= f packages=0Aused for compilation and for linking; and in the latter case I= would like=0Ato provide an explicit linking order. This is what I'm curre= ntly listing=0Ain _tags:=0A=0A<**/main.native>: pkg_a, pkg_b, pkg_c=0A<**/*= .ml>: pkg_b, pkg_c=0A=0AWhich is neither particularly pretty nor actually w= orking. Namely, during=0Athe linking stage, ocamlbuild is invoking "-packa= ge b -package a". This is=0Ain the wrong order, and different from the one= I specified. Is there any=0Astraightforward way to fix it?=0A=0AThanks fo= r your thoughts!=0ACheers,=0ADario=0A=0A[1] http://brion.inria.fr/gallium/i= ndex.php/Using_ocamlfind_with_ocamlbuild=0A=0A=0A=0A