Hi Jonathan,

> But in practice the snippet above is only used if you explicitly
> configure with --enable-libstdcxx-time={yes,rt} and will only add
> anything to GLIBCXX_LIBS if clock_gettime or nanosleep lives in one of
> librt or libposix4. I think libposix4 is Solaris-specific, and I don't
> think Darwin has librt. So in practice I don't think there's a
> problem on Darwin today.

I've had a look and both support for libposix4 and librt can go on
Solaris: libposix4 was renamed to librt in Solaris 7 (1998) and librt
was folded into libc in the OpenSolaris timeframe, leaving librt only as
a filter on libc.  Thus, it's no longer need on either Solaris 11 or
Illumos.  Unfortunately, it seems librt support cannot go completely:
it's still needed for HP-UX 11 (sem_init) and glibc < 2.17
(clock_gettime).

I'll prepare a patch for the Solaris side.

        Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

Reply via email to