[clutter-gtk] Explicitly link gtk-clutter-test against libm. Fixes bug #657952



commit 496aa0c97672ee1e84f0be6d339c559b1d74ce50
Author: Andre Klapper <ak-47 gmx net>
Date:   Fri Sep 2 11:06:12 2011 +0200

    Explicitly link gtk-clutter-test against libm. Fixes bug #657952

 configure.ac         |    3 +++
 examples/Makefile.am |    6 +++---
 2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 66ac9b8..444900e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -79,6 +79,9 @@ LT_INIT([disable-static])
 # Checks for header files.
 AC_HEADER_STDC
 
+AC_CHECK_LIBM
+AC_SUBST(LIBM)
+
 m4_define([clutter_req_version], [1.4.0])
 m4_define([gtk_req_version], [3.0.0])
 m4_define([flavour_default], [x11])
diff --git a/examples/Makefile.am b/examples/Makefile.am
index 5d0eca1..3e98e8a 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -25,11 +25,11 @@ common_ldadd = \
 
 gtk_clutter_test_SOURCES = gtk-clutter-test.c
 gtk_clutter_test_DEPENDENCIES = $(common_deps)
-gtk_clutter_test_LDADD = $(common_ldadd)
+gtk_clutter_test_LDADD = $(common_ldadd) $(LIBM)
 
 gtk_clutter_test_actor_SOURCES = gtk-clutter-test-actor.c
 gtk_clutter_test_actor_DEPENDENCIES = $(common_deps)
-gtk_clutter_test_actor_LDADD = $(common_ldadd)
+gtk_clutter_test_actor_LDADD = $(common_ldadd) $(LIBM)
 
 gtk_clutter_events_SOURCES = gtk-clutter-events.c
 gtk_clutter_events_DEPENDENCIES = $(common_deps)
@@ -49,7 +49,7 @@ gtk_clutter_window_test2_LDADD = $(common_ldadd)
 
 gtk_clutter_test_scroll_SOURCES = gtk-clutter-test-scroll.c
 gtk_clutter_test_scroll_DEPENDENCIES = $(common_deps)
-gtk_clutter_test_scroll_LDADD = $(common_ldadd)
+gtk_clutter_test_scroll_LDADD = $(common_ldadd) $(LIBM)
 
 EXTRA_DIST = \
 	redhand.png



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]