[PATCH weston] build: Add -lrt for programs that use clock_gettime()
Derek Foreman
derekf at osg.samsung.com
Wed Oct 21 14:55:00 PDT 2015
Thanks,
Pushed.
On 04/10/15 08:27 AM, Giulio Camuffo wrote:
> 2015-06-29 22:05 GMT+03:00 Derek Foreman <derekf at osg.samsung.com>:
>> glibc requires this prior to 2.17, and we already do it in a few other
>> places.
>>
>> Signed-off-by: Derek Foreman <derekf at osg.samsung.com>
>
> Reviewed-by: Giulio Camuffo <giuliocamuffo at gmail.com>
>
>> ---
>> Makefile.am | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/Makefile.am b/Makefile.am
>> index f493d16..347c64a 100644
>> --- a/Makefile.am
>> +++ b/Makefile.am
>> @@ -65,7 +65,7 @@ weston_LDFLAGS = -export-dynamic
>> weston_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
>> weston_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
>> weston_LDADD = $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
>> - $(DLOPEN_LIBS) -lm libshared.la
>> + $(DLOPEN_LIBS) -lm -lrt libshared.la
>>
>> weston_SOURCES = \
>> src/git-version.h \
>> @@ -477,7 +477,7 @@ nodist_weston_presentation_shm_SOURCES = \
>> protocol/presentation_timing-protocol.c \
>> protocol/presentation_timing-client-protocol.h
>> weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
>> -weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm
>> +weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm -lrt
>>
>> weston_multi_resource_SOURCES = clients/multi-resource.c
>> weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
>> --
>> 2.1.4
>>
>> _______________________________________________
>> wayland-devel mailing list
>> wayland-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
>
More information about the wayland-devel
mailing list