haskell / haskell/cabal

Pass --extra-lib-dirs to hsc2hs

Open
#7,022 0 comments 0 reactions 0 assignees View on GitHub
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

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.