You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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
The text was updated successfully, but these errors were encountered: