diff mbox series

[1/2] libtracefs: sqlhist - fix build dependency

Message ID 20210820235043.1450620-2-warthog9@eaglescrag.net (mailing list archive)
State Accepted
Commit 567fc8b8d4d5d8c536e82525e69af82d13b4e181
Headers show
Series [1/2] libtracefs: sqlhist - fix build dependency | expand

Commit Message

John 'Warthog9' Hawley Aug. 20, 2021, 11:50 p.m. UTC
Minor race condition (that's shockingly hard to reproduce, though nearly
always reproducible in an rpmbuild) with sqlhist.tab.h being built after
it's needed by tracefs-sqlhist.c.  This just sets an explicit dependency
for tracefs-sqlhist.o on sqlhist.tab.h existing first

Signed-off-by: John 'Warthog9' Hawley (VMware) <warthog9@eaglescrag.net>
---
 src/Makefile | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/src/Makefile b/src/Makefile
index 9248efc..314c16c 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -64,3 +64,5 @@  dep_includes := $(wildcard $(DEPS))
 ifneq ($(dep_includes),)
   include $(dep_includes)
 endif
+
+$(bdir)/tracefs-sqlhist.o tracefs-sqlhist.o: sqlhist.tab.h