]> xenbits.xen.org Git - xenclient/xen-pq.git/commitdiff
xenpm: Use pkgconfig to get cflags and ldflags
authorJean Guyader <jean.guyader@eu.citrix.com>
Wed, 20 Jan 2010 17:32:43 +0000 (17:32 +0000)
committerJean Guyader <jean.guyader@eu.citrix.com>
Wed, 20 Jan 2010 17:32:43 +0000 (17:32 +0000)
master/series
master/xenpm-use-pkgconfig [new file with mode: 0644]

index 7778173e31381991ccee016d266945f816b623e4..c455fb75c856b9e128518c9eb88d7bb4cefcef8b 100644 (file)
@@ -35,3 +35,4 @@ reset-atapi-after-failed-cd-boot
 vga-edid
 tboot-xen-fixes-01082010.patch
 guest-os-controlled-brightness-support
+xenpm-use-pkgconfig
diff --git a/master/xenpm-use-pkgconfig b/master/xenpm-use-pkgconfig
new file mode 100644 (file)
index 0000000..18c9fad
--- /dev/null
@@ -0,0 +1,16 @@
+diff --git a/tools/xenpmd/Makefile b/tools/xenpmd/Makefile
+index bf335af..be12894 100644
+--- a/tools/xenpmd/Makefile
++++ b/tools/xenpmd/Makefile
+@@ -3,9 +3,9 @@ include $(XEN_ROOT)/tools/Rules.mk
+ CFLAGS  += -Werror
+ CFLAGS  += $(CFLAGS_libxenstore)
+-CFLAGS  += -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
++CFLAGS  += $(shell pkg-config dbus-glib-1 --cflags)
+ LDFLAGS += $(LDFLAGS_libxenstore)
+-LDFLAGS += -ldbus-glib-1 -ldbus-1 -lpthread -lgobject-2.0 -lglib-2.0 -lintl
++LDFLAGS += $(shell pkg-confing dbus-glib-1 --libs) -lpthread -lintl
+ BIN      = xenpmd