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 OAA03380; Mon, 20 Aug 2001 14:53:35 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id OAA03315 for ; Mon, 20 Aug 2001 14:53:34 +0200 (MET DST) Received: from mailrelay2.inwind.it ([212.141.54.102]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f7KCrXD22630 for ; Mon, 20 Aug 2001 14:53:33 +0200 (MET DST) Received: from dalamar.krynn.it (62.98.123.214) by mailrelay2.inwind.it (5.5.029) id 3B4502A100AADB70 for caml-list@inria.fr; Mon, 20 Aug 2001 14:53:22 +0200 Received: from kitiara.krynn.it (kitiara.krynn.it [192.168.1.116]) by dalamar.krynn.it (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0-1) with ESMTP id f7KCrK4B001477 for ; Mon, 20 Aug 2001 14:53:20 +0200 Received: from kitiara.krynn.it (localhost [127.0.0.1]) by localhost (8.12.0.Beta12/8.12.0.Beta12/Debian 8.12.0.Beta12) with ESMTP id f7KCsBEs007730 for ; Mon, 20 Aug 2001 14:54:11 +0200 Received: (from zack@localhost) by kitiara.krynn.it (8.12.0.Beta12/8.12.0.Beta12/Debian 8.12.0.Beta12) id f7KCsBkE007728 for caml-list@inria.fr; Mon, 20 Aug 2001 14:54:11 +0200 Date: Mon, 20 Aug 2001 14:54:11 +0200 From: Stefano Zacchiroli To: Inria Ocaml Mailing List Subject: [Caml-list] -custom switch useless?? Message-ID: <20010820145411.A7591@cs.unibo.it> Mail-Followup-To: Inria Ocaml Mailing List Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline User-Agent: Mutt/1.3.18i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I'm building an ocaml package from sources and seems to me that -custom switch on ocamlc compiler has no effect. I'm building ocaml findlib and from the Makefile: ocamlfind: findlib.cma $(OCAMLFIND_OBJECTS) $(OCAMLC) -custom -g -o ocamlfind findlib.cma unix.cma \ $(OCAMLFIND_OBJECTS) with -custom switch ocamlfind is linked with the interpreter and the resulting file is a regular ELF executable that contains both the interpreter and the bytecode. Well, if I remove the -custom switch nothing changes! I obtain the same file and not a #!/usr/bin/ocamlrun executable as I expected, the two files are identical (diff tested). If I try the same with a stupid hello_world.ml test: let main () = print_string "Hello, world!\n";; main ();; all work as expected (ocamlrun executable without -custom, linked version with -custom). Why this difference? TIA, cheers. -- Stefano "Zack" Zacchiroli ICQ# 33538863 Home Page: http://www.students.cs.unibo.it/~zacchiro Undergraduate student of Computer Science @ University of Bologna, Italy - Information wants to be Open - ------------------- 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