【发布时间】:2014-04-05 12:04:44
【问题描述】:
我正在尝试使用 GHC 为用 Haskell 编写的基于 CGI 的 Web 应用程序构建一个静态二进制文件,以部署在共享服务器上。
我想使用musl,正如this answer所提到的那样。
不幸的是,这不是一件容易的事:
$ ghc -static -optl-static -pgmc musl-gcc -pgml musl-gcc -L/usr/local/lib app.hs
[1 of 1] Compiling Main ( app.hs, app.o )
Linking app...
/usr/lib/ghc-7.6.3/libHSrts.a(Itimer.o): In function `exitTicker':
(.text+0x1af): undefined reference to `__sysv_signal'
collect2: error: ld returned 1 exit status
我做错了什么? (完全免责声明:我是 Haskell 新手 (:)
我正在使用 Arch Linux、GHC 7.6.3 和 Network.CGI。
【问题讨论】: