Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document that static linking is not supported on MacOS #95

Open
NickSeagull opened this issue Nov 10, 2020 · 1 comment
Open

Document that static linking is not supported on MacOS #95

NickSeagull opened this issue Nov 10, 2020 · 1 comment

Comments

@NickSeagull
Copy link
Member

Per #41, some users are having trouble with static linking on MacOS, this is because MacOS doesn't support it.

A MacOS user should work in "development mode" without adding the cabal options related to static linking, and only add them when ready to deploy by building with stack build --docker

@dnikolovv
Copy link
Contributor

Static linking at this point in time is very very painful with Haskell. It works for simpler use-cases but fails the moment your project gets a tad bigger.

On the project I work atm we go around that by using the lambci/lambda:build-provided Docker image. We install the extra libraries needed and then copy them and ship them together with the bootstrap executable.

That would also be a great thing to document, as the errors that arise from getting it wrong are very unpleasant, to say the least.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants