[DTrace-devel] Fix build dependency for ctf_module_dump for parallel builds

Kris Van Hees kris.van.hees at oracle.com
Tue Mar 17 14:44:15 PDT 2020


When doing a parallel build, dt_git_version.h might not be built yet
by the time ctf_module_dump needs it.  It was missing as source
dependency for ctf_module_dump.

Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
---
 cmd/Build | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cmd/Build b/cmd/Build
index af5e2d3a..fdad59e6 100644
--- a/cmd/Build
+++ b/cmd/Build
@@ -22,6 +22,7 @@ ctf_module_dump_TARGET = ctf_module_dump
 ctf_module_dump_DIR := $(current-dir)
 ctf_module_dump_SOURCES = ctf_module_dump.c
 ctf_module_dump_DEPS = libdtrace.so libport.a
+ctf_module_dump_SRCDEPS := $(objdir)/dt_git_version.h
 ifdef HAVE_LIBCTF
 ctf_module_dump_LIBS = -ldtrace -lctf -lelf
 else
-- 
2.25.0




More information about the DTrace-devel mailing list