]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
build: Fix build with dtrace + apparmor
authorJiri Denemark <jdenemar@redhat.com>
Thu, 1 Mar 2012 15:02:31 +0000 (16:02 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 5 Mar 2012 10:30:02 +0000 (11:30 +0100)
Building virt-aa-helper with dtrace probes enabled, ldd complained about
undefined references:

./.libs/libvirt_util.a(libvirt_util_la-event_poll.o):(.note.stapsdt+0x24):
undefined reference to `libvirt_event_poll_purge_timeout_semaphore'
...

src/Makefile.am

index 3b29d39b797ed780d44de31e5fe26f9affc78066..e57eca2861f640735c47c306f17f81eefcd2c221 100644 (file)
@@ -1569,6 +1569,9 @@ virt_aa_helper_LDADD =                                            \
                libvirt_conf.la                                 \
                libvirt_util.la                                 \
                ../gnulib/lib/libgnu.la
+if WITH_DTRACE_PROBES
+virt_aa_helper_LDADD += probes.o
+endif
 virt_aa_helper_CFLAGS =                                                \
                -I$(top_srcdir)/src/conf                        \
                -I$(top_srcdir)/src/security                    \