@@ -64,6 +64,7 @@ data PerformBuild = PerformBuild
6464 , pbEnableTests :: Bool
6565 , pbEnableHaddock :: Bool
6666 , pbEnableLibProfiling :: Bool
67+ , pbEnableExecDyn :: Bool
6768 , pbVerbose :: Bool
6869 , pbAllowNewer :: Bool
6970 -- ^ Pass --allow-newer to cabal configure
@@ -317,6 +318,7 @@ singleBuild pb@PerformBuild {..} SingleBuild {..} =
317318 tell' $ "--flags=" ++ flags
318319 when (pbEnableLibProfiling && pcEnableLibProfile) $
319320 tell' "--enable-library-profiling"
321+ when pbEnableExecDyn $ tell' "--enable-executable-dynamic"
320322 where
321323 tell' x = tell (x:)
322324