[project @ 2005-09-18 16:23:57 by wolfgang]
authorwolfgang <unknown>
Sun, 18 Sep 2005 16:23:57 +0000 (16:23 +0000)
committerwolfgang <unknown>
Sun, 18 Sep 2005 16:23:57 +0000 (16:23 +0000)
Fix last commit: it's opt_Static in the HEAD branch, not a local variable
"static".

ghc/compiler/main/Packages.lhs

index 5f10fe3..a357480 100644 (file)
@@ -555,7 +555,7 @@ getPackageLinkOpts dflags pkgs = do
         -- _dyn to extraLibraries if they already have a _cbits suffix.
         
         hACK_dyn = map hack
-          where hack lib | not static && "_cbits" `isSuffixOf` lib = lib ++ "_dyn"
+          where hack lib | not opt_Static && "_cbits" `isSuffixOf` lib = lib ++ "_dyn"
                          | otherwise = lib
 
   return (concat (map all_opts ps))