diff options
author | Steven Rostedt (Google) <rostedt@goodmis.org> | 2022-11-15 15:53:52 -0500 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2022-11-15 16:05:45 -0500 |
commit | d4189ca382d2f5e20573e7f1dbc968070aa4e7d7 (patch) | |
tree | 0eb487c2a8c72e4f3d11ae46fdd6a544f7ffc782 | |
parent | 83f5d28ee73784db38d02bdb64f089ea415430e9 (diff) | |
download | trace-cmd-d4189ca382d2f5e20573e7f1dbc968070aa4e7d7.tar.gz |
trace-cmd: Make the unit test depend on the static library
Several times I've been confused that the unit test was not working after
I had fixed some of the library code. The reason is that the unit test
binary does not have a dependency on the static library. Even though the
library is updated, the unit test will not reflect the changes because it
was not rebuilt against the updated static library.
Add a dependency to the static library to the unit test binary.
Link: https://lore.kernel.org/linux-trace-devel/20221115205355.2580214-2-rostedt@goodmis.org
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
-rw-r--r-- | utest/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utest/Makefile b/utest/Makefile index d475bad5..337db9bf 100644 --- a/utest/Makefile +++ b/utest/Makefile @@ -23,7 +23,7 @@ $(bdir): $(OBJS): | $(bdir) $(DEPS): | $(bdir) -$(bdir)/trace-utest: $(OBJS) +$(bdir)/trace-utest: $(OBJS) $(LIBTRACECMD_STATIC) $(Q)$(do_app_build) $(bdir)/%.o: %.c |