Re: [dev] [st] Problem linking in OpenBSD

From: Szabolcs Nagy <nsz_AT_port70.net>
Date: Thu, 10 Jul 2014 12:32:30 +0200

* Dimitris Papastamos <sin_AT_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" <k0ga_AT_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)
Received on Thu Jul 10 2014 - 12:32:30 CEST

This archive was generated by hypermail 2.3.0 : Thu Jul 10 2014 - 12:36:06 CEST