commercialhaskell / commercialhaskell/stack
-dynamic-too is ignored when using -dynamic
Open
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
Assessment
This issue has not been assessed yet.