[clutter] build: Add -lm to the tests linker flags



commit 059d32b40d0d0fa364c0d28f4d5a8a7bbc27b5a2
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Sat Aug 27 23:58:26 2011 +0100

    build: Add -lm to the tests linker flags
    
    https://bugzilla.gnome.org/show_bug.cgi?id=657529

 tests/interactive/Makefile.am |    2 +-
 tests/micro-bench/Makefile.am |    2 +-
 tests/performance/Makefile.am |   10 ++++++----
 3 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/tests/interactive/Makefile.am b/tests/interactive/Makefile.am
index 81be8b6..75da2ad 100644
--- a/tests/interactive/Makefile.am
+++ b/tests/interactive/Makefile.am
@@ -123,7 +123,7 @@ test_interactive_CPPFLAGS = \
 	-DCOGL_DISABLE_DEPRECATED \
 	-DCLUTTER_DISABLE_DEPRECATED
 test_interactive_LDFLAGS = -export-dynamic
-test_interactive_LDADD = $(CLUTTER_LIBS) $(common_ldadd)
+test_interactive_LDADD = $(CLUTTER_LIBS) $(common_ldadd) -lm
 
 EXTRA_DIST = wrapper.sh.in
 DISTCLEANFILES = wrapper.sh .gitignore
diff --git a/tests/micro-bench/Makefile.am b/tests/micro-bench/Makefile.am
index 4366537..4824bb2 100644
--- a/tests/micro-bench/Makefile.am
+++ b/tests/micro-bench/Makefile.am
@@ -22,7 +22,7 @@ AM_CFLAGS = \
 	-DG_DISABLE_SINGLE_INCLUDES \
 	-DTESTS_DATA_DIR=\""$(top_srcdir)/tests/data/"\"
 
-LDADD = $(common_ldadd) $(CLUTTER_LIBS)
+LDADD = $(common_ldadd) $(CLUTTER_LIBS) -lm
 
 test_text_SOURCES = test-text.c
 test_picking_SOURCES = test-picking.c
diff --git a/tests/performance/Makefile.am b/tests/performance/Makefile.am
index a683b71..337cf66 100644
--- a/tests/performance/Makefile.am
+++ b/tests/performance/Makefile.am
@@ -12,10 +12,12 @@ noinst_PROGRAMS = \
 INCLUDES = \
 	-I$(top_srcdir)/ \
 	-I$(top_srcdir)/clutter \
-	-I$(top_srcdir)/clutter/cogl \
-	-I$(top_builddir)/clutter \
-	-I$(top_builddir)/clutter/cogl
-LDADD = $(top_builddir)/clutter/libclutter- CLUTTER_SONAME_INFIX@- CLUTTER_API_VERSION@.la $(CLUTTER_LIBS)
+	-I$(top_builddir)/clutter
+
+common_ldadd = $(top_builddir)/clutter/libclutter- CLUTTER_SONAME_INFIX@- CLUTTER_API_VERSION@.la
+
+LDADD = $(common_ldadd) $(CLUTTER_LIBS) -lm
+
 AM_CFLAGS = \
 	$(CLUTTER_CFLAGS) \
 	$(MAINTAINER_CFLAGS) \



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