Rules: add -U to ar

by default ar uses deterministic mode and all .o are
added even if they are not new. Disable this by adding -U
to ARFLAGS.

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
Laurent Vivier 2017-03-16 20:12:52 +00:00
parent 314268632b
commit 0ee6aca5ae

View File

@ -8,6 +8,7 @@ MODULE ?= $(shell basename $(TOP))
DISTFILES ?= $(SOURCES) $(HEADERS) Makefile DISTFILES ?= $(SOURCES) $(HEADERS) Makefile
ARFLAGS+=-U
$(LIBRARY): $(LIBRARY)($(patsubst %.S,%.o,$(SOURCES:.c=.o))) $(LIBRARY): $(LIBRARY)($(patsubst %.S,%.o,$(SOURCES:.c=.o)))
%.gz: % %.gz: %