]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Fix linking to DTrace probes file
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 28 May 2012 11:33:23 +0000 (12:33 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 28 May 2012 11:35:39 +0000 (12:35 +0100)
There was no rule forcing libvirt_qemu_probes.o to be built
before libvirt_qemu_probes.lo was used. Also libvirtd was
still referencing the .o file, rather than the .lo file.

Both the .lo and .o file must be listed as DEPENDENCIES,
otherwise libtool will unhelpfully delete the .o file
once the .lo file is created.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
daemon/Makefile.am
src/Makefile.am

index 187fa9396a5acab9ae32210d072e551cdbab1780..daf24ea48ac05f53c0b47f7c79f5486e90f23bdb 100644 (file)
@@ -114,7 +114,7 @@ libvirtd_LDADD =                                    \
        $(POLKIT_LIBS)
 
 if WITH_DTRACE_PROBES
-libvirtd_LDADD += ../src/libvirt_probes.o
+libvirtd_LDADD += ../src/libvirt_probes.lo
 endif
 
 libvirtd_LDADD += \
@@ -124,7 +124,7 @@ if ! WITH_DRIVER_MODULES
 if WITH_QEMU
     libvirtd_LDADD += ../src/libvirt_driver_qemu.la
 if WITH_DTRACE_PROBES
-    libvirtd_LDADD += ../src/libvirt_qemu_probes.o
+    libvirtd_LDADD += ../src/libvirt_qemu_probes.lo
 endif
 endif
 
index 18942620a48d8cb5a36d3b28e2991a2599112804..f840e5311bca87fbee739a905e303b357c70f7a4 100644 (file)
@@ -1271,7 +1271,7 @@ libvirt_la_DEPENDENCIES = $(libvirt_la_BUILT_LIBADD) $(LIBVIRT_SYMBOL_FILE)
 
 if WITH_DTRACE_PROBES
 libvirt_la_BUILT_LIBADD += libvirt_probes.lo
-libvirt_la_DEPENDENCIES += libvirt_probes.o
+libvirt_la_DEPENDENCIES += libvirt_probes.lo libvirt_probes.o
 nodist_libvirt_la_SOURCES = libvirt_probes.h
 if WITH_REMOTE
 $(REMOTE_DRIVER_GENERATED): libvirt_probes.h
@@ -1282,7 +1282,7 @@ BUILT_SOURCES += libvirt_probes.h libvirt_probes.stp libvirt_functions.stp
 if WITH_QEMU
 libvirt_driver_qemu_la_LIBADD += libvirt_qemu_probes.lo
 nodist_libvirt_driver_qemu_la_SOURCES = libvirt_qemu_probes.h
-libvirt_driver_qemu_la_DEPENDENCIES = libvirt_qemu_probes.o
+libvirt_driver_qemu_la_DEPENDENCIES = libvirt_qemu_probes.lo libvirt_qemu_probes.o
 
 $(libvirt_driver_qemu_la_SOURCES): libvirt_qemu_probes.h
 endif