aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIain Lane <iain@orangesquash.org.uk>2016-02-19 10:56:53 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-02-19 10:56:53 +0100
commit0871d147746b8ff9e197df03722624ee97044b4a (patch)
treebc98652d8e19a448dbe1f4cc5d6835e3f9c8d750
parentc9b08c107634035ee87ec88f3a4b7a1499588fa4 (diff)
downloadlibayatana-indicator-0871d147746b8ff9e197df03722624ee97044b4a.tar.gz
libayatana-indicator-0871d147746b8ff9e197df03722624ee97044b4a.tar.bz2
libayatana-indicator-0871d147746b8ff9e197df03722624ee97044b4a.zip
Add -lm via LDADD to resolve FTBFS in Ubuntu 16.04 and Debian stretch/unstable.
-rw-r--r--configure.ac2
-rw-r--r--libayatana-indicator/Makefile.am3
2 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index d02b182..3aac789 100644
--- a/configure.ac
+++ b/configure.ac
@@ -69,7 +69,7 @@ AS_IF([test "x$with_gtk" = x3],
AM_CONDITIONAL(USE_GTK3, [test "x$with_gtk" = x3])
LT_LIB_M
-LIBINDICATOR_LIBS+="$LIBM"
+AC_SUBST(LIBM)
##############################
# Custom Junk
diff --git a/libayatana-indicator/Makefile.am b/libayatana-indicator/Makefile.am
index 7a1c617..d9260ea 100644
--- a/libayatana-indicator/Makefile.am
+++ b/libayatana-indicator/Makefile.am
@@ -68,7 +68,8 @@ libayatana_indicator_la_CFLAGS = \
-Wall -Werror -Wno-error=deprecated-declarations
libayatana_indicator_la_LIBADD = \
- $(LIBINDICATOR_LIBS)
+ $(LIBINDICATOR_LIBS) \
+ $(LIBM)
libayatana_indicator_la_LDFLAGS = \
$(COVERAGE_LDFLAGS) \