Skip to content

Commit 0957294

Browse files
ahunter6acmel
authored andcommitted
perf build: Suppress 'rm dlfilter' build message
The following build message: rm dlfilters/dlfilter-test-api-v0.o is unwanted. The object file is being treated as an intermediate file and being automatically removed. Mark the object file as .SECONDARY to prevent removal and hence the message. Requested-by: Arnaldo Carvalho de Melo <acme@kernel.org> Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Link: http://lore.kernel.org/lkml/20210930062849.110416-1-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 180eca5 commit 0957294

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tools/perf/Makefile.perf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,8 @@ $(OUTPUT)dlfilters/%.o: dlfilters/%.c include/perf/perf_dlfilter.h
787787
$(Q)$(MKDIR) -p $(OUTPUT)dlfilters
788788
$(QUIET_CC)$(CC) -c -Iinclude $(EXTRA_CFLAGS) -o $@ -fpic $<
789789

790+
.SECONDARY: $(DLFILTERS:.so=.o)
791+
790792
$(OUTPUT)dlfilters/%.so: $(OUTPUT)dlfilters/%.o
791793
$(QUIET_LINK)$(CC) $(EXTRA_CFLAGS) -shared -o $@ $<
792794

0 commit comments

Comments
 (0)