From ad2bb65c4ae36970c613306153ca1b9a89e9db48 Mon Sep 17 00:00:00 2001
From: "Daniel P. Berrange" <berrange@redhat.com>
Date: Tue, 11 Oct 2011 16:43:58 +0100
Subject: [PATCH] Fix deps for probes.o to ensure correct build ordering

---
 src/Makefile.am | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index f937b97456..6451ad392f 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1253,7 +1253,8 @@ libvirt_la_CFLAGS = -DIN_LIBVIRT $(AM_CFLAGS)
 libvirt_la_DEPENDENCIES = $(libvirt_la_BUILT_LIBADD) $(LIBVIRT_SYMBOL_FILE)
 
 if WITH_DTRACE
-libvirt_la_LIBADD += probes.o
+libvirt_la_BUILT_LIBADD += probes.o
+libvirt_la_DEPENDENCIES += probes.o
 nodist_libvirt_la_SOURCES = probes.h
 
 BUILT_SOURCES += probes.h libvirt_probes.stp libvirt_functions.stp