From: Stefano Zacchiroli <zack@cs.unibo.it>
To: Inria Ocaml Mailing List <caml-list@inria.fr>
Subject: [Caml-list] -custom switch useless??
Date: Mon, 20 Aug 2001 14:54:11 +0200 [thread overview]
Message-ID: <20010820145411.A7591@cs.unibo.it> (raw)
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 <zack@cs.unibo.it> 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
next reply other threads:[~2001-08-20 12:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-20 12:54 Stefano Zacchiroli [this message]
2001-08-21 11:36 ` Alain Frisch
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010820145411.A7591@cs.unibo.it \
--to=zack@cs.unibo.it \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox