From: Jiri Denemark Date: Thu, 1 Mar 2012 15:02:31 +0000 (+0100) Subject: build: Fix build with dtrace + apparmor X-Git-Tag: v0.9.11-rc1~162 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57e677a7c6e55dea60d9be5667e8eebba11cc2b4;p=thirdparty%2Flibvirt.git build: Fix build with dtrace + apparmor 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' ... --- diff --git a/src/Makefile.am b/src/Makefile.am index 3b29d39b79..e57eca2861 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -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 \