You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ghc and setup are called with -dynamic, but haddock isn't.
The operation fails with a linker error.
Passing -optghc=-dynamic to haddock (via --haddock-options) fixed the issue.
I since went static again after I found ghc-static and don't use the dynamic settings anymore.
The text was updated successfully, but these errors were encountered:
opts <-if withVanillaLib lbi
thenreturn vanillaOpts
elseif withSharedLib lbi
thenreturn sharedOpts
else die' verbosity $"Must have vanilla or shared libraries "++"enabled in order to run haddock"
Where sharedOpts includes -dynamic.
Indeed if one passes --disable-library-vanillaCabal picks sharedOpts. So I think we need the same mechanism here with which cabal-install decides if it should pass -dynamic to ghc and setup or not.
~/.cabal/config:
GHC version: 8.2.1
Cabal version: 2.1.0
ghc
andsetup
are called with-dynamic
, buthaddock
isn't.The operation fails with a linker error.
Passing
-optghc=-dynamic
to haddock (via--haddock-options
) fixed the issue.I since went static again after I found
ghc-static
and don't use the dynamic settings anymore.The text was updated successfully, but these errors were encountered: