summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorEmmanuel Benoît <tseeker@nocternity.net>2015-01-21 16:18:17 +0100
committerEmmanuel Benoît <tseeker@nocternity.net>2015-01-21 16:45:55 +0100
commitad1f4567523c986a9a49dc104aac730b06cbdfa2 (patch)
tree12dae22524588fac05efbff55dfa4b888dd9fe99 /configure.ac
parent877de5b8ee5584091c8c10476878324a44467f73 (diff)
Build files: remove extraneous dependency
* configure.ac: use LT_LIBM to check for the maths library * src/accelerometer/Makefile.am: use $(LIBM) instead of -lm in the link flags This causes all executables (except accelerometer) and libraries to be linked without libm, which they do not need.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index dbca833f6b..4f0e54979c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -99,7 +99,7 @@ AC_CHECK_FUNCS(
[AC_MSG_ERROR([*** POSIX function not found])]
)
AC_SEARCH_LIBS([clock_gettime], [rt], [], [AC_MSG_ERROR([*** POSIX librt not found])])
-AC_SEARCH_LIBS([sqrt], [m], [], [AC_MSG_ERROR([*** POSIX libm not found])])
+LT_LIB_M
# ------------------------------------------------------------------------------