On Thursday, 07 February 2019 at 17:34, Florian Weimer wrote:
> * Tom Callaway:
> 
> > So, R links with rt if this configure check succeeds:
> >
> > AC_CHECK_LIB(rt, clock_gettime)
> >
> > Sure enough, on aarch64 and ppc64le, there is no clock_gettime in
> > librt.so.1. I'm not sure _why_, but there is probably a good reason.
> 
> Hah!
> 
> We moved clock_gettime to libc.so.6 in glibc 2.17, so that it is
> available without -lrt as well.  But we forgot to turn the legacy
> definitions into compatibility symbols, so they are still being picked
> up with -lrt.  This should be easy enough to fix.

clock_getres(2) confirms:
       Link with -lrt (only for glibc versions before 2.17).

Regards,
Dominik
-- 
Fedora   https://getfedora.org  |  RPM Fusion  http://rpmfusion.org
There should be a science of discontent. People need hard times and
oppression to develop psychic muscles.
        -- from "Collected Sayings of Muad'Dib" by the Princess Irulan
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org

Reply via email to