From: Bruce Richardson Date: Tue, 9 Jun 2015 12:51:01 +0000 (+0100) Subject: mk: fix static build on Fedora 22 X-Git-Tag: spdx-start~8929 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=152143808d59d3537888c3deb312f6e6fae94df0;p=dpdk.git mk: fix static build on Fedora 22 On Fedora 22, the "ar" binary operates by default in deterministic mode, making the "u" parameter irrelevant, and leading to warning messages getting printed in the build output like below. INSTALL-LIB librte_kvargs.a ar: `u' modifier ignored since `D' is the default (see `U') There are two options to remove these warnings: * add in the "U" flag to make "ar" non-deterministic again * remove the "u" flag to have all objects always updated This patch takes the second approach. It also explicitly adds in the "D" flag to make behaviour consistent across different distributions which may have different defaults. Signed-off-by: Bruce Richardson Acked-by: Olivier Matz --- diff --git a/mk/rte.lib.mk b/mk/rte.lib.mk index 0d7482d4ff..25aa989cae 100644 --- a/mk/rte.lib.mk +++ b/mk/rte.lib.mk @@ -70,7 +70,7 @@ else _CPU_LDFLAGS := $(CPU_LDFLAGS) endif -O_TO_A = $(AR) crus $(LIB) $(OBJS-y) +O_TO_A = $(AR) crDs $(LIB) $(OBJS-y) O_TO_A_STR = $(subst ','\'',$(O_TO_A)) #'# fix syntax highlight O_TO_A_DISP = $(if $(V),"$(O_TO_A_STR)"," AR $(@)") O_TO_A_CMD = "cmd_$@ = $(O_TO_A_STR)"