From 888e7c48a1ff78406b3567ccc5f3dbe3218d88c1 Mon Sep 17 00:00:00 2001 From: Andrea Righi Date: Tue, 2 Apr 2024 16:47:56 +0200 Subject: [PATCH] UBUNTU: SAUCE: rtla: fix deb build BugLink: https://bugs.launchpad.net/bugs/2059080 We need to explicitly define build rules for C object files when building the deb, otherwise we may get the following build failure: make[1]: *** No rule to make target 'src/osnoise.o', needed by 'static'. Stop. This doesn't seem to happen when building rtla manually, but we need it when we build the deb package, so add the extra rule to make the build more robust. Signed-off-by: Andrea Righi --- tools/tracing/rtla/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/tracing/rtla/Makefile b/tools/tracing/rtla/Makefile index afd18c678ff5..f4916d402c03 100644 --- a/tools/tracing/rtla/Makefile +++ b/tools/tracing/rtla/Makefile @@ -111,6 +111,9 @@ warnings: $(WARNINGS) $(ERROR_OUT) endif +%.o: %.c + $(CC) $(CFLAGS) -c -o $@ $< + rtla: $(OBJ) $(CC) -o rtla $(LDFLAGS) $(OBJ) $(LIBS)