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
[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: 2001-08-21 (11:36)
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:  FAQ:
To unsubscribe, mail  Archives: