[gnome-power-manager/gnome-2-28] Use -lm to fix the compile when linking with --as-needed



commit 6bb4d2344d45308e10b72bc588f81f9a649f6ee1
Author: Richard Hughes <richard hughsie com>
Date:   Wed Jan 6 19:01:14 2010 +0000

    Use -lm to fix the compile when linking with --as-needed

 src/Makefile.am |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 0b3c51f..7199579 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -97,6 +97,7 @@ gnome_power_statistics_LDADD =				\
 	$(GNOME_LIBS)					\
 	$(UNIQUE_LIBS)					\
 	$(DBUS_LIBS)					\
+	-lm						\
 	$(NULL)
 
 gnome_power_statistics_CFLAGS =				\
@@ -115,6 +116,7 @@ gnome_power_preferences_LDADD =				\
 	$(GNOME_LIBS)					\
 	$(HAL_LIBS)					\
 	$(DBUS_LIBS)					\
+	-lm						\
 	$(UNIQUE_LIBS)					\
 	$(GPM_EXTRA_LIBS)				\
 	$(DEVKIT_LIBS)					\
@@ -183,6 +185,7 @@ gnome_power_manager_LDADD =				\
 	$(GNOME_LIBS)					\
 	$(HAL_LIBS)					\
 	$(DBUS_LIBS)					\
+	-lm						\
 	$(XRANDR_LIBS)					\
 	$(CANBERRA_LIBS)				\
 	$(LIBNOTIFY_LIBS)				\
@@ -256,6 +259,7 @@ gnome_power_self_test_LDADD =				\
 	$(GSTREAMER_LIBS)				\
 	$(DEVKIT_LIBS)					\
 	$(DBUS_LIBS)					\
+	-lm						\
 	$(LIBNOTIFY_LIBS)				\
 	$(GPM_EXTRA_LIBS)				\
 	$(NULL)



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