cabal new-build --disable-shared doesn't disable shared libraries.
Open
cabal-install: v2-build system
type: bug
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
Looking at the `ProjectPlanning.hs`, I believe `--disable-shared` is only applied to the root package? And not propagated recursively? While this is exactly what I want for `--enable-shared` in #4617, it is exactly not what I want for `--disable-shared`.
I want `--disable-shared`, because `yesod-persistent` with `new-build` blows past the mach-o load command size:
```
malformed mach-o: load commands size (33576) > 32768
```
on macOS Sierra.
The underlying reason I believe is that we embed
```
@rpath/libHS---ghc.dylib
```
for each dependent library.
Contributor guide
Assessment
This issue has not been assessed yet.