commercialhaskell / commercialhaskell/stack

-dynamic-too is ignored when using -dynamic

Open
#6,746 1 comment 0 reactions 1 assignee Claimed by @mpilgrem View on GitHub
component: build component: Cabal library resolution: upstream issue type: bug
Dominant language
Haskell
Stars
4.1k
Forks
850
Avg merge
10h 37m
Merged PRs (30d)
4

Description

### General summary/comments (optional)

When I add `ghc-options: -dynamic` to cabal-file and compile with `-Werror`, I get the following error:

```
[warn] when making flags consistent: error: [-Werror]
[warn] -dynamic-too is ignored when using -dynamic
```

### Stack version

~~~text
stack --version
Version 3.5.1, Git revision 86415540dffcb1990e0b503c894dcb913378f5dc x86_64 hpack-0.38.0
~~~

### Method of installation

* Via GHCup

### Platform

macOS 15.5

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.