Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] merging .cmxa files?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Xavier Leroy <Xavier.Leroy@i...>
Subject: Re: [Caml-list] merging .cmxa files?
> 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