根据 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 i
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.然后人们就离开了机票,因为它经常发生在打开 – 源项目.也许拥有大量空闲时间和虚拟机的人会出现并修复这些补丁.