[project @ 2003-07-23 16:19:48 by simonmar]
authorsimonmar <unknown>
Wed, 23 Jul 2003 16:19:48 +0000 (16:19 +0000)
committersimonmar <unknown>
Wed, 23 Jul 2003 16:19:48 +0000 (16:19 +0000)
There's no need to pass -u Main_zdmain_closure to the linker, indeed
this causes problems when there isn't a Main_zdmain_closure
(eg. linking a C program using GHC).

merge to STABLE

ghc/compiler/main/DriverPipeline.hs

index 9866b56..b4e8722 100644 (file)
@@ -1054,9 +1054,7 @@ staticLink o_files dep_packages = do
                      ++ pkg_framework_path_opts
                      ++ pkg_framework_opts
 #endif
-                     ++ if static && not no_hs_main then
-                           [ "-u", prefixUnderscore "Main_zdmain_closure"] 
-                        else []))
+                   ))
 
     -- parallel only: move binary to another dir -- HWL
     ways_ <- readIORef v_Ways