[gnome-power-manager/gnome-2-28] bugfix: fix compile when using an ld that defaults to --as-needed
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-power-manager/gnome-2-28] bugfix: fix compile when using an ld that defaults to --as-needed
- Date: Fri, 22 Jan 2010 12:08:23 +0000 (UTC)
commit 6a802c17225e36607a5cc5358541462dbe1a1e45
Author: Richard Hughes <richard hughsie com>
Date: Fri Jan 8 09:51:40 2010 +0000
bugfix: fix compile when using an ld that defaults to --as-needed
configure.ac | 7 +++++--
src/Makefile.am | 16 ++++++++--------
2 files changed, 13 insertions(+), 10 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index cf15f72..03638c5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -161,11 +161,14 @@ AC_SUBST(GDK_CFLAGS)
AC_SUBST(GDK_LIBS)
PKG_CHECK_MODULES(XRANDR, [
- xrandr >= $XRANDR_REQUIRED
- xrender x11])
+ xrandr >= $XRANDR_REQUIRED])
AC_SUBST(XRANDR_CFLAGS)
AC_SUBST(XRANDR_LIBS)
+PKG_CHECK_MODULES(X11, x11 xrender)
+AC_SUBST(X11_CFLAGS)
+AC_SUBST(X11_LIBS)
+
PKG_CHECK_MODULES(LIBNOTIFY, libnotify >= $LIBNOTIFY_REQUIRED)
AC_SUBST(LIBNOTIFY_CFLAGS)
AC_SUBST(LIBNOTIFY_LIBS)
diff --git a/src/Makefile.am b/src/Makefile.am
index 7199579..27af5f3 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -93,12 +93,12 @@ gnome_power_statistics_SOURCES = \
gnome_power_statistics_LDADD = \
libgpmshared.a \
$(GLIB_LIBS) \
+ $(X11_LIBS) \
$(DEVKIT_LIBS) \
$(GNOME_LIBS) \
$(UNIQUE_LIBS) \
$(DBUS_LIBS) \
- -lm \
- $(NULL)
+ -lm
gnome_power_statistics_CFLAGS = \
$(WARNINGFLAGS) \
@@ -113,14 +113,14 @@ gnome_power_preferences_SOURCES = \
gnome_power_preferences_LDADD = \
libgpmshared.a \
$(GLIB_LIBS) \
+ $(X11_LIBS) \
$(GNOME_LIBS) \
$(HAL_LIBS) \
$(DBUS_LIBS) \
- -lm \
$(UNIQUE_LIBS) \
$(GPM_EXTRA_LIBS) \
$(DEVKIT_LIBS) \
- $(NULL)
+ -lm
if HAVE_HAL
gnome_power_preferences_LDADD += $(LOCAL_LIBHAL_LIBS)
@@ -181,17 +181,17 @@ endif
gnome_power_manager_LDADD = \
libgpmshared.a \
$(GLIB_LIBS) \
+ $(X11_LIBS) \
$(GSTREAMER_LIBS) \
$(GNOME_LIBS) \
$(HAL_LIBS) \
$(DBUS_LIBS) \
- -lm \
$(XRANDR_LIBS) \
$(CANBERRA_LIBS) \
$(LIBNOTIFY_LIBS) \
$(GPM_EXTRA_LIBS) \
$(DEVKIT_LIBS) \
- $(NULL)
+ -lm
if HAVE_HAL
gnome_power_manager_LDADD += $(LOCAL_LIBHAL_LIBS)
@@ -255,14 +255,14 @@ gnome_power_self_test_SOURCES = \
gnome_power_self_test_LDADD = \
$(GLIB_LIBS) \
+ $(X11_LIBS) \
$(GNOME_LIBS) \
$(GSTREAMER_LIBS) \
$(DEVKIT_LIBS) \
$(DBUS_LIBS) \
- -lm \
$(LIBNOTIFY_LIBS) \
$(GPM_EXTRA_LIBS) \
- $(NULL)
+ -lm
if HAVE_HAL
gnome_power_self_test_LDADD += $(LOCAL_LIBHAL_LIBS)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]