aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac3
-rw-r--r--libempathy/Makefile.am2
-rw-r--r--src/Makefile.am4
3 files changed, 6 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 810b73513..e235118ab 100644
--- a/configure.ac
+++ b/configure.ac
@@ -167,6 +167,9 @@ AC_SUBST(LDFLAGS)
# Pkg-Config dependency checks
# -----------------------------------------------------------
+AC_CHECK_LIBM
+AC_SUBST(LIBM)
+
PKG_CHECK_MODULES(EMPATHY,
[
dbus-glib-1
diff --git a/libempathy/Makefile.am b/libempathy/Makefile.am
index 21a582099..3cd971a5d 100644
--- a/libempathy/Makefile.am
+++ b/libempathy/Makefile.am
@@ -128,7 +128,7 @@ libempathy_la_LIBADD = \
$(NETWORK_MANAGER_LIBS) \
$(CONNMAN_LIBS) \
$(UDEV_LIBS) \
- -lm
+ $(LIBM)
check_c_sources = \
$(libempathy_handwritten_source)
diff --git a/src/Makefile.am b/src/Makefile.am
index 6be4b9e29..cc4eebe30 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -12,7 +12,7 @@ CPPFLAGS_COMMON = \
$(WARN_CFLAGS) \
$(NULL)
-AM_LDFLAGS = -lm
+AM_LDFLAGS = $(LIBM)
AM_CPPFLAGS = \
$(CPPFLAGS_COMMON) \
$(LIBCHAMPLAIN_CFLAGS) \
@@ -130,7 +130,7 @@ empathy_av_SOURCES = \
nodist_empathy_av_SOURCES = $(BUILT_SOURCES)
empathy_av_CFLAGS = $(EMPATHY_AV_CFLAGS)
-empathy_av_LDFLAGS = $(EMPATHY_AV_LIBS) -lm
+empathy_av_LDFLAGS = $(EMPATHY_AV_LIBS) $(LIBM)
empathy_auth_client_SOURCES = \
empathy-auth-client.c \