加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

haskell – 为什么使用GHC 7.10.2构建的可执行文件与librt和libc

发布时间:2020-12-14 04:56:35 所属栏目:百科 来源:网络整理
导读:根据 https://docs.oracle.com/cd/E36784_01/html/E36873/librt-3lib.html Historically,functions in this library provided many of the interfaces specified by the POSIX.1b Realtime Extension. See standards(5). This functionality now resides in
根据 https://docs.oracle.com/cd/E36784_01/html/E36873/librt-3lib.html

Historically,functions in this library provided many of the
interfaces specified by the POSIX.1b Realtime Extension. See
standards(5). This functionality now resides in libc(3LIB).

This library is maintained to provide backward compatibility for both
runtime and compilation environments. The shared object is implemented
as a filter on libc.so.1. New application development need not specify
–lrt.

所以目前它应该只链接到libc,它应该包含librt中包含的所有内容.同样适用于libc中包含的libdl依赖.

解决方法

这是在 Trac #8713年(两年前!)提出的,其中包括一个补丁ghc-libs.patch,它从GHC运行时系统中删除了librt要求. (运行时系统正在拉动librt.)不幸的是,在讨论的时候,似乎修补程序在Solaris 10或11上破坏了GHC.然后人们就离开了机票,因为它经常发生在打开 – 源项目.也许拥有大量空闲时间和虚拟机的人会出现并修复这些补丁.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读