Skip to content

new-haddock: '-dynamic' flag is not passed to haddock (archlinux, dynamic GHC package) #4670

Open
@TimoFreiberg

Description

@TimoFreiberg

~/.cabal/config:

library-vanilla: False
shared: True
executable-dynamic: True

GHC version: 8.2.1
Cabal version: 2.1.0

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions