Pass --extra-lib-dirs to hsc2hs
Open
Cabal: cmd/build
type: enhancement
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
On MacOS, `DYLD_LIBRARY_PATH` is stripped from the environment (https://stackoverflow.com/a/35570229/8565175), so currently, there's no way to point `hsc2hs` to a custom path with dylibs to link. I'm thinking maybe passing `--extra-lib-dirs` through in `ppHsc2hs` would allow a workaround
Related ticket for GHC: https://gitlab.haskell.org/ghc/ghc/-/issues/11617#note_295904
Contributor guide
Assessment
This issue has not been assessed yet.