* Dimitris Papastamos <s...@2f30.org> [2014-07-09 07:10:57 +0100]: > On Wed, Jul 09, 2014 at 01:16:05AM +0200, FRIGN wrote: > > On Tue, 8 Jul 2014 22:45:15 +0200 > > "Roberto E. Vargas Caballero" <k...@shike2.com> wrote: > > > > > cannot find -lrt > > > > The fix is rather trivial: Just remove the damn -lrt. > > Seriously: On OpenBSD, you don't need to include any libs to use > > time.h; on Linux, this is only necessary for glibc-versions below 2.17. > > They should at least provide an empty -lrt or ignore it.
-l rt is a posix requirement (certain standard symbols may only be available for linking if the specified -l flags are given to c99, see the extended description in http://pubs.opengroup.org/onlinepubs/9699919799/utilities/c99.html#tag_20_11_13 so yes, to avoid toolchain issues a reasonable libc implemetation should provide empty versions of the libs required by the standard)