summaryrefslogtreecommitdiff
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
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.
-rw-r--r--configure.ac2
-rw-r--r--src/accelerometer/Makefile.am2
2 files changed, 2 insertions, 2 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
# ------------------------------------------------------------------------------
diff --git a/src/accelerometer/Makefile.am b/src/accelerometer/Makefile.am
index 983cf003d0..3d64842632 100644
--- a/src/accelerometer/Makefile.am
+++ b/src/accelerometer/Makefile.am
@@ -13,4 +13,4 @@ accelerometer_SOURCES = \
accelerometer_LDADD = \
$(top_builddir)/src/libudev/libudev-private.la \
$(top_builddir)/src/udev/libudev-core.la \
- -lm
+ $(LIBM)