[Xfce4-commits] <gtk-xfce-engine:master> Link against libm for floor() and ceil()
Peter de Ridder
noreply at xfce.org
Sat Dec 17 23:58:01 CET 2011
Updating branch refs/heads/master
to 0a2d889281440c78b60fb0e70ee1121e1baf148c (commit)
from 2d01d1235b0e8425f251da55e4cb98fcc03f5cd5 (commit)
commit 0a2d889281440c78b60fb0e70ee1121e1baf148c
Author: Lionel Le Folgoc <lionel at lefolgoc.net>
Date: Sat Dec 17 20:38:14 2011 +0100
Link against libm for floor() and ceil()
configure.in.in | 3 +++
gtk-3.0/Makefile.am | 3 ++-
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/configure.in.in b/configure.in.in
index d917580..b6d2125 100644
--- a/configure.in.in
+++ b/configure.in.in
@@ -75,6 +75,9 @@ then
GTK3_BINARY_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-3.0`
AC_SUBST([GTK3_BINARY_VERSION])
GTK_SUBDIRS="$GTK_SUBDIRS gtk-3.0"
+ dnl libm is needed for floor() and ceil()
+ AC_CHECK_LIBM
+ AC_SUBST(LIBM)
fi
AC_SUBST([GTK_SUBDIRS])
diff --git a/gtk-3.0/Makefile.am b/gtk-3.0/Makefile.am
index 49091d9..e5ca000 100644
--- a/gtk-3.0/Makefile.am
+++ b/gtk-3.0/Makefile.am
@@ -29,7 +29,8 @@ libxfce_la_CFLAGS = \
libxfce_la_LIBADD = \
$(GTK3_LIBS) \
$(GLIB_LIBS) \
- $(GMODULE_LIBS)
+ $(GMODULE_LIBS) \
+ $(LIBM)
libxfce_la_LDFLAGS = \
-module \
More information about the Xfce4-commits
mailing list