[goobox] explicitly link to the math library
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goobox] explicitly link to the math library
- Date: Thu, 29 Mar 2012 21:30:21 +0000 (UTC)
commit 8e281ef84b6bbd8a4af3f957d7fa585cf947ab3d
Author: Paolo Bacchilega <paobac src gnome org>
Date: Thu Mar 29 23:25:34 2012 +0200
explicitly link to the math library
configure.ac | 10 ++++++++++
src/Makefile.am | 1 +
2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 5242bad..ecf188a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -59,6 +59,16 @@ if test x$enable_run_in_place = xyes; then
fi
dnl ===========================================================================
+
+SAVE_CFLAGS="$CFLAGS"
+CFLAGS=""
+AC_CHECK_LIB(m, floor,, AC_MSG_ERROR([math library not found]))
+M_LIBS="-lm"
+CFLAGS="$SAVE_CFLAGS"
+unset SAVE_CFLAGS
+AC_SUBST(M_LIBS)
+
+dnl ===========================================================================
dnl
dnl libnotify
dnl
diff --git a/src/Makefile.am b/src/Makefile.am
index df9a0ba..bf6f75e 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -87,6 +87,7 @@ goo-marshal.c: goo-marshal.list $(GLIB_GENMARSHAL)
goobox_LDADD = \
$(top_builddir)/copy-n-paste/libeggsmclient.la \
$(GOO_LIBS) \
+ $(M_LIBS) \
$(LIBNOTIFY_LIBS) \
$(SYSTEM_LIBS)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]