commercialhaskell/stack

Adding --static flag for building static executables with stack?

Open

#3,420 建立於 2017年9月7日

在 GitHub 查看
 (18 留言) (31 反應) (0 負責人)Haskell (848 fork)batch import
further investigation requiredhelp wantedin progresstype: enhancement

倉庫指標

Star
 (4,060 star)
PR 合併指標
 (平均合併 17天 10小時) (30 天內合併 6 個 PR)

描述

A great question was posed in the comments to this article https://www.fpcomplete.com/blog/2016/10/static-compilation-with-stack, although it seems to have been left unanswered.

Mainly, if it could be possible to have a --static flag in stack, that would set the flags necessary for building a statically linked binary, and perhaps be aware of the crtbeginT and suggest/link to the proposed fix.

This issue https://github.com/commercialhaskell/stack/issues/1032 which is still open, seems to be somewhat related, but has been left without any activity (except for a few semi-related comments) for quite a while.

Any thoughts if it is even feasible to begin such work?

貢獻者指南