Permalink
Browse files

Always use either -static or -dynamic when compiling with GHC

-static is no longer necessarily the default
  • Loading branch information...
1 parent e1d0d85 commit 8c46dbf5c22b6bc4bc59355ce4aa8d929eaf6778 @igfoo igfoo committed Oct 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Cabal/Distribution/Simple/Program/GHC.hs
@@ -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 ]

0 comments on commit 8c46dbf

Please sign in to comment.