commercialhaskell / commercialhaskell/stack

Document static compilation (was: Static compile support for AWS Linux (Redhat/CentOS))

Open
#1,032 23 comments 5 reactions 0 assignees View on GitHub
awaiting pull request component: docs (online)
Dominant language
Haskell
Stars
4.1k
Forks
850
Avg merge
10h 37m
Merged PRs (30d)
4

Description

If you are compiling for AWS Lambda you have to statically link everything, i.e. stack ghc Foo.hs -threaded -static -optl-static

This requires static versions of libffi, glibc, libgmp, ... finally got it working but it was a pain. Could really use support for static compiles out of the box in stack.

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.