Bug 95037

Summary: Weston clock_gettime() zuctest build failure
Product: Wayland Reporter: Gustavo Zacarias <gustavo>
Component: westonAssignee: Wayland bug list <wayland-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: build: add check for clock_gettime() in librt

Description Gustavo Zacarias 2016-04-20 18:37:29 UTC
Created attachment 123094 [details]
build: add check for clock_gettime() in librt

zuctest is another clock_gettime() user that fails to link against librt when necessary.

Instead of adding another -lrt LDADD entry i've opted for the saner way and converted the check to a configure test that will set CLOCK_GETTIME_LIBS appropiately and replaced all instances of -lrt with it.
Built-tested against old and new glibc.
Comment 1 Pekka Paalanen 2016-04-21 07:59:33 UTC
Hi,

thank you for writing a patch. Could you send it to the wayland-devel@ mailing list so we can track it in https://patchwork.freedesktop.org/project/wayland/patches/ and review it, please?

Would also be nice to add this to the commit message above your S-o-b:
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=95037

Thanks.
Comment 3 Pekka Paalanen 2016-04-25 12:37:17 UTC
Oh yeah, I landed those, so marking as fixed. I forgot about this bug as neither patch carried a link. ;-)

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.