X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Fmain%2FPackages.lhs;fp=ghc%2Fcompiler%2Fmain%2FPackages.lhs;h=a357480a213ef84e5030c85dcfd3074311213b42;hb=2e1e502018e0364227d7ffb6ed3a32e29359278b;hp=5f10fe3bcd4edd05799a746cbe6113b8a954bd88;hpb=b4dc7456db505a60bf9331943c202dbb0007dc06;p=ghc-hetmet.git diff --git a/ghc/compiler/main/Packages.lhs b/ghc/compiler/main/Packages.lhs index 5f10fe3..a357480 100644 --- a/ghc/compiler/main/Packages.lhs +++ b/ghc/compiler/main/Packages.lhs @@ -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))