Skip to content

Commit

Permalink
Always use either -static or -dynamic when compiling with GHC
Browse files Browse the repository at this point in the history
-static is no longer necessarily the default
  • Loading branch information
Ian Lynagh committed Oct 3, 2012
1 parent e1d0d85 commit 8c46dbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cabal/Distribution/Simple/Program/GHC.hs
Expand Up @@ -246,7 +246,7 @@ renderGhcOptions version@(Version ver _) opts =
-- Dynamic linking

, [ "-shared" | flagBool ghcOptShared ]
, [ "-dynamic" | flagBool ghcOptDynamic ]
, [ if flagBool ghcOptDynamic then "-dynamic" else "-static" ]
, [ "-fPIC" | flagBool ghcOptFPic ]

, concat [ ["-dylib-install-name", libname] | libname <- flag ghcOptDylibName ]
Expand Down

0 comments on commit 8c46dbf

Please sign in to comment.