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
{{ message }}
Repository navigation
new-haddock: '-dynamic' flag is not passed to haddock (archlinux, dynamic GHC package) #4670
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.
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.
Activity
alexbiehl commentedon Aug 7, 2017
The culprit is most likely here: https://github.com/haskell/cabal/blob/master/Cabal/Distribution/Simple/Haddock.hs#L329
Where
sharedOptsincludes-dynamic.Indeed if one passes
--disable-library-vanillaCabalpickssharedOpts. So I think we need the same mechanism here with whichcabal-installdecides if it should pass-dynamictoghcandsetupor not.