diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk index 17ed4bbe3963..98841c54763a 100644 --- a/tools/testing/selftests/lib.mk +++ b/tools/testing/selftests/lib.mk @@ -51,7 +51,7 @@ clean: $(RM) -r $(TEST_GEN_PROGS) $(TEST_GEN_PROGS_EXTENDED) $(TEST_GEN_FILES) $(EXTRA_CLEAN) $(OUTPUT)/%:%.c - $(CC) $(CFLAGS) $(LDFLAGS) $(LDLIBS) $< -o $@ + $(LINK.c) $^ $(LDLIBS) -o $@ $(OUTPUT)/%.o:%.S $(CC) $(ASFLAGS) -c $< -o $@