@@ -64,6 +64,7 @@ data PerformBuild = PerformBuild
64 , pbEnableTests :: Bool
64 , pbEnableTests :: Bool
65 , pbEnableHaddock :: Bool
65 , pbEnableHaddock :: Bool
66 , pbEnableLibProfiling :: Bool
66 , pbEnableLibProfiling :: Bool
67+ , pbEnableExecDyn :: Bool
67 , pbVerbose :: Bool
68 , pbVerbose :: Bool
68 , pbAllowNewer :: Bool
69 , pbAllowNewer :: Bool
69 -- ^ Pass --allow-newer to cabal configure
70 -- ^ Pass --allow-newer to cabal configure
@@ -317,6 +318,7 @@ singleBuild pb@PerformBuild {..} SingleBuild {..} =
317 tell' $ "--flags=" ++ flags
318 tell' $ "--flags=" ++ flags
318 when (pbEnableLibProfiling && pcEnableLibProfile) $
319 when (pbEnableLibProfiling && pcEnableLibProfile) $
319 tell' "--enable-library-profiling"
320 tell' "--enable-library-profiling"
321+ when pbEnableExecDyn $ tell' "--enable-executable-dynamic"
321 tell' x = tell (x:)
323 tell' x = tell (x:)