From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id NAA19275; Tue, 21 Aug 2001 13:36:28 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id NAA19236 for ; Tue, 21 Aug 2001 13:36:27 +0200 (MET DST) Received: from nef.ens.fr (nef.ens.fr [129.199.96.32]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f7LBaQX14998 for ; Tue, 21 Aug 2001 13:36:26 +0200 (MET DST) Received: from clipper.ens.fr (clipper-gw.ens.fr [129.199.1.22]) by nef.ens.fr (8.10.1/1.01.28121999) with ESMTP id f7LBaPm36677 ; Tue, 21 Aug 2001 13:36:25 +0200 (CEST) Received: from localhost (frisch@localhost) by clipper.ens.fr (8.9.2/jb-1.1) id NAA28007 ; Tue, 21 Aug 2001 13:36:25 +0200 (MET DST) Date: Tue, 21 Aug 2001 13:36:25 +0200 (MET DST) From: Alain Frisch To: Stefano Zacchiroli cc: Inria Ocaml Mailing List Subject: Re: [Caml-list] -custom switch useless?? In-Reply-To: <20010820145411.A7591@cs.unibo.it> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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