[project @ 2001-06-15 15:15:33 by simonmar]
authorsimonmar <unknown>
Fri, 15 Jun 2001 15:15:33 +0000 (15:15 +0000)
committersimonmar <unknown>
Fri, 15 Jun 2001 15:15:33 +0000 (15:15 +0000)
Restore an #ifdef mingw32_TARGET_OS that shouldn't have been removed
(but do it better this time and don't use an arch-specific #ifdef).

ghc/compiler/main/DriverPipeline.hs

index 5a02850..345252f 100644 (file)
@@ -1,5 +1,5 @@
 -----------------------------------------------------------------------------
--- $Id: DriverPipeline.hs,v 1.79 2001/06/15 08:29:58 simonpj Exp $
+-- $Id: DriverPipeline.hs,v 1.80 2001/06/15 15:15:33 simonmar Exp $
 --
 -- GHC Driver
 --
@@ -799,7 +799,15 @@ doLink o_files = do
                      ++ pkg_lib_opts
                      ++ pkg_extra_ld_opts
                      ++ extra_ld_opts
-                     ++ if static then [ "-u _PrelMain_mainIO_closure" , "-u ___init_PrelMain"] else [])
+                     ++ if static then
+#ifdef LEADING_UNDERSCORE
+                           [ "-u _PrelMain_mainIO_closure" ,
+                             "-u ___init_PrelMain"] 
+#else
+                           [ "-u PrelMain_mainIO_closure" ,
+                             "-u __init_PrelMain"] 
+#endif
+                        else [])
 
     -- parallel only: move binary to another dir -- HWL
     ways_ <- readIORef v_Ways