From 1a369f5204343d9cf103d329731636a0ae3e5859 Mon Sep 17 00:00:00 2001 From: rrt Date: Wed, 22 Aug 2001 09:47:37 +0000 Subject: [PATCH] [project @ 2001-08-22 09:47:37 by rrt] Point out that -no-hs-main doesn't have any effect unless you're building DLLs. --- ghc/docs/users_guide/phases.sgml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ghc/docs/users_guide/phases.sgml b/ghc/docs/users_guide/phases.sgml index e78f34a..8542eaf 100644 --- a/ghc/docs/users_guide/phases.sgml +++ b/ghc/docs/users_guide/phases.sgml @@ -358,7 +358,11 @@ strmod = "\ be supplying its definition of main() at link-time, you will have to. To signal that to the driver script when linking, use - . + . In fact, this only has an + effect when the Haskell code is compiled into a DLL; the + rest of the time, static linking allows the RTS's + main() to be overridden in the same + way as any other library routine. Notice that since the command-line passed to the linker is rather involved, you probably want to use -- 1.7.10.4