caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Mixed static/dynamic linking of libraries
@ 2011-05-02  6:49 Paul Steckler
  2011-05-02 12:00 ` Richard W.M. Jones
  2011-05-15 12:46 ` ygrek
  0 siblings, 2 replies; 4+ messages in thread
From: Paul Steckler @ 2011-05-02  6:49 UTC (permalink / raw)
  To: caml-list

I want to statically link a library (libsqlite3.a) with my OCaml
application, but allow other
libraries to link dynamically. I'm building using ocamlfind on Linux.
I've tried various combinations
of -cclib -static and -cclib -Bdynamic, to no avail.  If I use the arguments

  -cclib -static -cclib -lsqlite3

the linker appears to find libsqlite3.a, but the linker then tries to
statically link every other library
used by my application.  That's so even if I follow the above by
-cclib -Bdynamic.

Is there a way to mix static and dynamic libraries using ocamlfind?

-- Paul

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

end of thread, other threads:[~2011-05-15 12:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-02  6:49 [Caml-list] Mixed static/dynamic linking of libraries Paul Steckler
2011-05-02 12:00 ` Richard W.M. Jones
2011-05-02 12:40   ` Gerd Stolpmann
2011-05-15 12:46 ` ygrek

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