English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2001-09-18 (13:50)
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