commercialhaskell / commercialhaskell/stack
Bundle library and dependencies in a single .so
Open
type: enhancement
- Dominant language
- Haskell
- Stars
- 4.1k
- Forks
- 850
- Avg merge
- 10h 37m
- Merged PRs (30d)
- 4
Description
I have a library which should be linked with a C project.
In order to simplify deployment, I'd like to have either one single shared object containing my haskell lib, the RTS and the dependencies, or statically link everything into the C project.
I don't think stack can generate that, but for a start is there a way after building to get the list of the paths of every static library my project depends on? I.e a list of everything that _would_ be linked into an executable depending on my library.
Something à la `stack list-dependencies`, but file-oriented.
Contributor guide
Assessment
This issue has not been assessed yet.