Axel Lin | d66c981 | 2014-01-09 10:08:29 +0800 | [diff] [blame] | 1 | From 715186bee512f25715e6d1c58ce03cc32e0efae3 Mon Sep 17 00:00:00 2001 |
| 2 | From: Axel Lin <axel.lin@ingics.com> |
| 3 | Date: Mon, 30 Dec 2013 18:10:03 +0800 |
| 4 | Subject: [PATCH] Link against -lrt for clock_gettime |
| 5 | |
| 6 | Fix undefined reference to `clock_gettime' error. |
| 7 | This is required since commit f3e398afc549 "Rewrite cipher benchmark loop.". |
| 8 | |
| 9 | Below is the build error report: |
| 10 | http://autobuild.buildroot.net/results/9ca/9cad1cf49ee6b5c58d8260ee33beef2e6c1ada4d/build-end.log |
| 11 | |
| 12 | Signed-off-by: Axel Lin <axel.lin@ingics.com> |
| 13 | --- |
| 14 | configure.ac | 3 ++- |
| 15 | 1 file changed, 2 insertions(+), 1 deletion(-) |
| 16 | |
| 17 | diff --git a/configure.ac b/configure.ac |
| 18 | index 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 | -- |
| 32 | 1.8.1.2 |
| 33 | |