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=2.8 required=5.0 tests=DNS_FROM_RFC_POST,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 mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 829ADBBAF for ; Sat, 11 Jul 2009 09:46:29 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AoIBAFPgV0pIDtyYimdsb2JhbACOZYoBPwEBAQoJDAcRBaJKgRqQSwEDAgQFhAAF X-IronPort-AV: E=Sophos;i="4.42,383,1243807200"; d="scan'208";a="31030331" Received: from fg-out-1718.google.com ([72.14.220.152]) by mail3-smtp-sop.national.inria.fr with ESMTP; 11 Jul 2009 09:46:29 +0200 Received: by fg-out-1718.google.com with SMTP id l26so130966fgb.20 for ; Sat, 11 Jul 2009 00:46:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type; bh=fM+fQ5b0Cj0485fQArOz61TygvRSJhDaHWk4+UAXJgE=; b=daeeGyBYJzV/DGAvnYwVUd5WAUU1wp50M+cNt+/r+nb7MdM7Lrdu7EQaV86+T7t5Al iSkW5OSh2HeDAyHOjtLdcRk4mejg7bWQc9Jy0r8ogfFw3ihCydb/BhTRALGtoF66clJx YH+UQH91GLZyO0y96QBtiabTzFkUCMhbAqgJk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type; b=BbCMF6RFy/3ya8PPRr8f9Q68lQxrZU/BS28WYR1ucXBFoy4iG1yR4KSgAGQVMxHR6g yeYGtDI/VnT9gWRP5XpAslfknSutFO9A6mXmkuiWb2AI9Wono3h/azc3MrgZN/i2frZ9 GGXfo1SCPOSLgXOKiPGfgt0D+wqf7EJvV6geE= Received: by 10.86.74.4 with SMTP id w4mr1587235fga.65.1247298388884; Sat, 11 Jul 2009 00:46:28 -0700 (PDT) Received: from lemon (143-111-132-95.pool.ukrtel.net [95.132.111.143]) by mx.google.com with ESMTPS id d4sm414496fga.4.2009.07.11.00.46.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 11 Jul 2009 00:46:27 -0700 (PDT) Date: Sat, 11 Jul 2009 10:46:18 +0300 From: ygrek To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Linking order with Ocamlbuild Message-Id: <20090711104618.05ad073e.ygrekheretix@gmail.com> In-Reply-To: <904590.82265.qm@web111511.mail.gq1.yahoo.com> References: <904590.82265.qm@web111511.mail.gq1.yahoo.com> X-Mailer: Sylpheed 2.5.0 (GTK+ 2.12.12; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Sat__11_Jul_2009_10_46_18_+0300_6CbxAieca+spA6gm" X-Spam: no; 0.00; -package:01 -package:01 ocaml:01 lib:01 2009:98 wrote:01 caml-list:01 namely:02 namely:02 output:02 linking:02 linking:02 native:03 fix:05 jul:05 X-Attachments: type="application/pgp-signature" --Signature=_Sat__11_Jul_2009_10_46_18_+0300_6CbxAieca+spA6gm Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, 7 Jul 2009 09:11:23 -0700 (PDT) Dario Teixeira wrote: > <**/main.native>: pkg_a, pkg_b, pkg_c > <**/*.ml>: pkg_b, pkg_c >=20 > Which is neither particularly pretty nor actually working. Namely, during > the linking stage, ocamlbuild is invoking "-package b -package a". This = is > in the wrong order, and different from the one I specified. Is there any > straightforward way to fix it? =20 As far as I observed ocamlbuild preserves the same order of libraries at th= e linking stage that was used when introducing those libraries in myocamlbuild.ml (namely w= ith ocaml_lib). So try to sort the output of find_packages as you need. --=20 ygrek --Signature=_Sat__11_Jul_2009_10_46_18_+0300_6CbxAieca+spA6gm Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkpYQ0oACgkQY0a5RXCNWgxZKwCcDjFvTJf1gAfCuhMrbyXVFopE sucAn0oYnTjYYc26xsrbaKvEYcFwGm8Z =jPag -----END PGP SIGNATURE----- --Signature=_Sat__11_Jul_2009_10_46_18_+0300_6CbxAieca+spA6gm--