Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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:  FAQ:
To unsubscribe, mail  Archives: