[PATCH 2/2] util_lib: Silence ar informational message

Geoff Levand geoff at infradead.org
Thu Oct 8 16:21:24 PDT 2015


Add the -c option to ar to silence the informational
message 'ar creating libutil.a'.  ar outputs this
message to stderr, and some tools interpret this as
a build warning.

Signed-off-by: Geoff Levand <geoff at infradead.org>
---
 util_lib/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/util_lib/Makefile b/util_lib/Makefile
index 54ccdc5..15b84e5 100644
--- a/util_lib/Makefile
+++ b/util_lib/Makefile
@@ -18,5 +18,5 @@ $(UTIL_LIB): CPPFLAGS += -I$(srcdir)/util_lib/include
 
 $(UTIL_LIB): $(UTIL_LIB_OBJS)
 	@$(MKDIR) -p $(@D)
-	$(AR) rs $(UTIL_LIB) $(UTIL_LIB_OBJS)
+	$(AR) rs -c $(UTIL_LIB) $(UTIL_LIB_OBJS)
 
-- 
2.5.0




More information about the kexec mailing list