caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Relevance of explicit -linkall with ocamlopt -shared
@ 2008-10-30  8:48 Stéphane Glondu
  2008-10-30  9:15 ` [Caml-list] " Alain Frisch
  0 siblings, 1 reply; 2+ messages in thread
From: Stéphane Glondu @ 2008-10-30  8:48 UTC (permalink / raw)
  To: caml-list

Hello,

Are there cases where ocamlopt -shared is useful without -linkall?


Cheers,

-- 
Stéphane Glondu


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] Relevance of explicit -linkall with ocamlopt -shared
  2008-10-30  8:48 Relevance of explicit -linkall with ocamlopt -shared Stéphane Glondu
@ 2008-10-30  9:15 ` Alain Frisch
  0 siblings, 0 replies; 2+ messages in thread
From: Alain Frisch @ 2008-10-30  9:15 UTC (permalink / raw)
  To: Stéphane Glondu; +Cc: caml-list

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 
needed.


-- Alain


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-30  9:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-30  8:48 Relevance of explicit -linkall with ocamlopt -shared Stéphane Glondu
2008-10-30  9:15 ` [Caml-list] " Alain Frisch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).