* [Caml-list] ocamlmklib question
@ 2002-10-06 21:53 Alessandro Baretta
2002-10-07 7:25 ` Jacques Garrigue
0 siblings, 1 reply; 2+ messages in thread
From: Alessandro Baretta @ 2002-10-06 21:53 UTC (permalink / raw)
To: Ocaml
How is ocamlmklib different from ocamlc -a?
Alex
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] ocamlmklib question
2002-10-06 21:53 [Caml-list] ocamlmklib question Alessandro Baretta
@ 2002-10-07 7:25 ` Jacques Garrigue
0 siblings, 0 replies; 2+ messages in thread
From: Jacques Garrigue @ 2002-10-07 7:25 UTC (permalink / raw)
To: alex; +Cc: caml-list
From: Alessandro Baretta <alex@baretta.com>
> How is ocamlmklib different from ocamlc -a?
ocamlmklib calls differents commands according to its parameters:
* ocamlc -a for .cmo's
* ocamlopt -a for .cmx's
* ar and ld -shared for .o's
It is intended to help you build libraries mixing caml and C code.
In particular it will automatically build both .a and .so forms for
the C code, and add needed linking options in calls to ocaml{c,opt} -a.
Another nice feature is for library developpers is that it
automatically handles the building of shared objects: just compile
your C code with 'ocamlc -c -ccopt "..." src.c', and use ocamlmklib
for linking, and your Makefile will work both on architectures with
and without dynamic loading.
For more details, you can just read the source.
Jacques Garrigue
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-10-07 7:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-06 21:53 [Caml-list] ocamlmklib question Alessandro Baretta
2002-10-07 7:25 ` Jacques Garrigue
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox