[Xfce4-commits] <xfce4-session:master> explicitly link to libm where needed (bug #7953)
Brian J. Tarricone
noreply at xfce.org
Mon Sep 26 10:20:01 CEST 2011
Updating branch refs/heads/master
to eeaea26d3b777afb98c21317ad83170e3f725fd0 (commit)
from 5b6b22c9e1e9c0c1cfc618b9546695b4966d19b3 (commit)
commit eeaea26d3b777afb98c21317ad83170e3f725fd0
Author: Brian J. Tarricone <brian at tarricone.org>
Date: Mon Sep 26 01:18:48 2011 -0700
explicitly link to libm where needed (bug #7953)
we use rint() but aren't linking to libm; probably getting picked up
implicitly by a dependency like libpng, which recently dropped that flag
from its .pc file.
configure.in.in | 4 ++++
engines/balou/Makefile.am | 3 ++-
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/configure.in.in b/configure.in.in
index 141d427..8eff947 100644
--- a/configure.in.in
+++ b/configure.in.in
@@ -63,6 +63,10 @@ AC_CHECK_HEADERS([asm/unistd.h errno.h fcntl.h limits.h \
AC_CHECK_FUNCS([getaddrinfo gethostbyname gethostname getpwuid setsid \
sigaction strdup sync vfork])
+dnl Check for required libraries
+AC_CHECK_LIBM
+AC_SUBST(LIBM)
+
dnl Check for X11 installed
XDT_CHECK_LIBX11_REQUIRE()
diff --git a/engines/balou/Makefile.am b/engines/balou/Makefile.am
index 96ae5c5..d049a35 100644
--- a/engines/balou/Makefile.am
+++ b/engines/balou/Makefile.am
@@ -31,7 +31,8 @@ libbalou_la_LDFLAGS = \
libbalou_la_LIBADD = \
$(top_builddir)/libxfsm/libxfsm-4.6.la \
$(LIBXFCE4UI_LIBS) \
- $(XFCONF_LIBS)
+ $(XFCONF_LIBS) \
+ $(LIBM)
libbalou_la_DEPENDENCIES = \
More information about the Xfce4-commits
mailing list