This is the mail archive of the libstdc++@gcc.gnu.org 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] | |
On Fri, Jul 25, 2008 at 8:48 AM, Paolo Carlini <paolo.carlini@oracle.com> wrote:
> Hi,
>
>> Yes, of course. Thanks.
>>
>> As I said, the patch was completely untested (not even "make
>> gcc") due to lack of time.
>
> I was testing something similar. The problem is that in my experiments the compiler builds now, but apparently the trick doesn't work. That is, if I try to build something like the below, the link fails, -lrt is not added... Any idea why?
>
> Paolo.
>
> ////////////
>
> #include <ctime>
>
> void f()
> {
> timespec t;
> clock_gettime(CLOCK_REALTIME, &t);
> }
>
> int main()
> {
> f();
> }
>
>
With attached patch I get the same on testcase 20_util/clocks/1.cc
Chris
Attachment:
librt_patch.txt
Description: Text document
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |