From 0ee6aca5ae0fd065a098f34cb88d55b0c9bb7fd9 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Thu, 16 Mar 2017 20:12:52 +0000 Subject: [PATCH] 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 --- Rules.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/Rules.mk b/Rules.mk index 5fd3ea6..f369ca8 100644 --- a/Rules.mk +++ b/Rules.mk @@ -8,6 +8,7 @@ MODULE ?= $(shell basename $(TOP)) DISTFILES ?= $(SOURCES) $(HEADERS) Makefile +ARFLAGS+=-U $(LIBRARY): $(LIBRARY)($(patsubst %.S,%.o,$(SOURCES:.c=.o))) %.gz: %