This is the mail archive of the mailing list for the libstdc++ project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Default to --enable-libstdcxx-time=auto

Jonathan Wakely <> writes:

>> All of them have the same root cause:
>> Excess errors:
>> Undefined                       first referenced
>>  symbol                             in file
>> nanosleep /var/tmp//ccQhmiwd.o (symbol belongs to implicit dependency
>> /lib/
>> ld: fatal: symbol referencing errors. No output written to ./54297.exe
>> collect2: error: ld returned 1 exit status
>> It seems that now every single C++ program needs to be linked with -lrt,
>> not only  This will also happen on Solaris 9 (bootstrap
>> still running), while on Solaris 11 nanosleep and the others were
>> integrated into
> I see.  Would you prefer to disable use of nanosleep on Solaris 9 and
> 10, or to keep using it and link to librt?

I think it's fine for both C++11 programs and to depend
on librt.  Maybe one could restrict linking with -lrt to C++11 mode?
But I doubt that: you can probably link both C++99 and C++11 objects
into a single executable, and with already depending on
librt, there's not much point in the added complexity.


Rainer Orth, Center for Biotechnology, Bielefeld University

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]