logrotate: enable selinux support
[buildroot-gz.git] / package / weston / 0003-configure-search-for-lib-with-clock_getres.patch
bloba8ad9eaa0b30c09689b7fbfab37e37d58ce8957b
1 From e269012c4b919624ca92d80afd1d6a6f5399e041 Mon Sep 17 00:00:00 2001
2 From: "Yann E. MORIN" <yann.morin.1998@free.fr>
3 Date: Mon, 19 Dec 2016 18:07:07 +0100
4 Subject: [PATCH] configure: search for lib with clock_getres()
6 Like clock_gettime(), clock_getres() is in -lrt for glibc < 2.17.
7 Add a check for it, like is done for clock_gettime().
9 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
10 ---
11 Upstream status: submitted
12 https://lists.freedesktop.org/archives/wayland-devel/2016-December/032354.html
13 ---
14 Makefile.am | 1 +
15 configure.ac | 3 ++-
16 2 files changed, 3 insertions(+), 1 deletion(-)
18 diff --git a/Makefile.am b/Makefile.am
19 index 2219e3d..53f8f51 100644
20 --- a/Makefile.am
21 +++ b/Makefile.am
22 @@ -190,6 +190,7 @@ weston_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
23 weston_LDADD = libshared.la libweston-@LIBWESTON_MAJOR@.la \
24 $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
25 $(DLOPEN_LIBS) $(LIBINPUT_BACKEND_LIBS) \
26 + $(CLOCK_GETRES_LIBS) \
27 -lm
29 weston_SOURCES = \
30 diff --git a/configure.ac b/configure.ac
31 index 1e251bf..604f51b 100644
32 --- a/configure.ac
33 +++ b/configure.ac
34 @@ -88,8 +88,9 @@ PKG_PROG_PKG_CONFIG()
36 WESTON_SEARCH_LIBS([DLOPEN], [dl], [dlopen])
38 -# In old glibc versions (< 2.17) clock_gettime() is in librt
39 +# In old glibc versions (< 2.17) clock_gettime() and clock_getres() are in librt
40 WESTON_SEARCH_LIBS([CLOCK_GETTIME], [rt], [clock_gettime])
41 +WESTON_SEARCH_LIBS([CLOCK_GETRES], [rt], [clock_getres])
43 AC_CHECK_DECL(SFD_CLOEXEC,[],
44 [AC_MSG_ERROR("SFD_CLOEXEC is needed to compile weston")],
45 --
46 2.7.4