blob: ae9a5226416e765fab8c810b25d61fdac9bbb181 [file] [log] [blame]
Axel Lind66c9812014-01-09 10:08:29 +08001From 715186bee512f25715e6d1c58ce03cc32e0efae3 Mon Sep 17 00:00:00 2001
2From: Axel Lin <axel.lin@ingics.com>
3Date: Mon, 30 Dec 2013 18:10:03 +0800
4Subject: [PATCH] Link against -lrt for clock_gettime
5
6Fix undefined reference to `clock_gettime' error.
7This is required since commit f3e398afc549 "Rewrite cipher benchmark loop.".
8
9Below is the build error report:
10http://autobuild.buildroot.net/results/9ca/9cad1cf49ee6b5c58d8260ee33beef2e6c1ada4d/build-end.log
11
12Signed-off-by: Axel Lin <axel.lin@ingics.com>
13---
14 configure.ac | 3 ++-
15 1 file changed, 2 insertions(+), 1 deletion(-)
16
17diff --git a/configure.ac b/configure.ac
18index 1c456be..aa4c10f 100644
19--- a/configure.ac
20+++ b/configure.ac
21@@ -49,7 +49,8 @@ AC_CHECK_LIB(uuid, uuid_clear, ,[AC_MSG_ERROR([You need the uuid library.])])
22 AC_SUBST(UUID_LIBS, $LIBS)
23 LIBS=$saved_LIBS
24
25-AC_CHECK_FUNCS([posix_memalign])
26+AC_SEARCH_LIBS([clock_gettime],[rt posix4])
27+AC_CHECK_FUNCS([posix_memalign clock_gettime])
28
29 if test "x$enable_largefile" = "xno" ; then
30 AC_MSG_ERROR([Building with --disable-largefile is not supported, it can cause data corruption.])
31--
321.8.1.2
33