Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] -custom switch useless??
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Alain Frisch <frisch@c...>
Subject: Re: [Caml-list] -custom switch useless??
On Mon, 20 Aug 2001, Stefano Zacchiroli wrote:

>   I'm building an ocaml package from sources and seems to me that
> -custom switch on ocamlc compiler has no effect.

The switch tells the compiler to include a customized version of the
runtime interpreter. Some libraries requires this behaviour; this is the
case for unix.cma, because it comes with a C support library (libunix.a).
These libraries are linked with the -custom switch, and the linker
remembers it when linking your program. So -custom is implicit
in this case.

You can disable the behaviour with the -noautolink switch.
It may be useful if you want to build a custom runtime interpreter
(with unix support for instance) once and for all (-make-runtime),
and use it with -use-runtime for all your programs.


-- 
  Alain  Frisch

-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr