Add a flag to disable linking with the haskell98 package
[ghc-hetmet.git] / compiler / main / DriverPipeline.hs
index b848e83..8543707 100644 (file)
@@ -389,7 +389,9 @@ doLink dflags stop_phase o_files
   where
    -- Always link in the haskell98 package for static linking.  Other
    -- packages have to be specified via the -package flag.
-    link_pkgs = [haskell98PackageId]
+    link_pkgs
+     | dopt Opt_LinkHaskell98 dflags = [haskell98PackageId]
+     | otherwise                     = []
 
 
 -- ---------------------------------------------------------------------------