From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA25523; Tue, 18 Sep 2001 15:50:36 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id PAA25144 for ; Tue, 18 Sep 2001 15:50:35 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f8IDoXr13701; Tue, 18 Sep 2001 15:50:34 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA25429; Tue, 18 Sep 2001 15:50:33 +0200 (MET DST) Date: Tue, 18 Sep 2001 15:50:33 +0200 From: Xavier Leroy To: Michael Hicks Cc: caml-list@inria.fr Subject: Re: [Caml-list] merging .cmxa files? Message-ID: <20010918155033.B23689@pauillac.inria.fr> References: <404A3A4758DDCC4C8A5C9A537384F9D6037605@opus.cs.cornell.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <404A3A4758DDCC4C8A5C9A537384F9D6037605@opus.cs.cornell.edu>; from mhicks@cs.cornell.edu on Sun, Sep 02, 2001 at 03:55:37PM -0400 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > I apologize if there is an obvious answer to this question somewhere, > but I couldn't find it in the documentation or the archive: > > Is there a way to merge two .cmxa files into a single .cmxa file? ocamlc -a can do that in the case of .cma libraries. ocamlopt -a could do it also if it were not for the stubbornness of the underlying "ar" command (which is used to group together the .o files containing the actual code for the Caml modules in the library): "ar" cannot combine several .a files into one. So, currently, I don't see how this can be done, save by significant hacking in / around "ar". - Xavier Leroy ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr