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
Relevance of explicit -linkall with ocamlopt -shared
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-10-30 (09:15)
From: Alain Frisch <alain@f...>
Subject: Re: [Caml-list] Relevance of explicit -linkall with ocamlopt -shared
Stéphane Glondu wrote:
> Are there cases where ocamlopt -shared is useful without -linkall?

Yes, I think so. First, of course, when you don't link any library in 
the .cmxs, only modules, then -linkall is not needed (but admittedly it 
wouldn't hurt). Second, imagine you want to create an addin that relies 
on code in a library which you want to embed in the addin. You don't 
necessarily want to link the whole library, just the modules which are 

-- Alain