[project @ 2002-07-29 10:42:29 by simonmar]
[ghc-hetmet.git] / ghc / compiler / main / DriverPipeline.hs
index c2d4235..944802e 100644 (file)
@@ -949,6 +949,7 @@ doLink o_files = do
 #endif
                      ++ pkg_extra_ld_opts
                      ++ extra_ld_opts
+                     ++ (if static then [ "-static" ] else [])
                      ++ if static && not no_hs_main then
                            [ "-u", prefixUnderscore "Main_zdmain_closure"] 
                         else []))