From 1632ec917ef091ed8ad5b0fb32c33185d8153239 Mon Sep 17 00:00:00 2001 From: anchao Date: Wed, 5 Sep 2018 06:43:46 -0600 Subject: [PATCH] Application.mk: Generate temporary name for linker object --- Application.mk | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Application.mk b/Application.mk index 44c2a1a5f..93854933a 100644 --- a/Application.mk +++ b/Application.mk @@ -188,9 +188,10 @@ PROGOBJ := $(MAINOBJ) .proglist: $(MAINOBJ) $(OBJS) ifneq ($(PROGOBJ),) - $(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) $(ARCHCRT0OBJ) $(firstword $(PROGOBJ)) $(LDLIBS) -o $(firstword $(PROGLIST)) - $(Q) $(NM) -u $(firstword $(PROGLIST)) - $(Q) install -m 0755 -D $(firstword $(PROGLIST)) $(BIN_DIR)/$(firstword $(PROGLIST)) + $(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) $(ARCHCRT0OBJ) $(firstword $(PROGOBJ)) $(LDLIBS) -o $(strip $(firstword $(PROGLIST)))_ + $(Q) $(NM) -u $(strip $(firstword $(PROGLIST)))_ + $(Q) install -m 0755 -D $(strip $(firstword $(PROGLIST)))_ $(firstword $(PROGLIST)) + $(call DELFILE, $(strip $(firstword $(PROGLIST)))_) # $(Q) $(STRIP) $(BIN_DIR)/$(firstword $(PROGLIST) $(eval PROGLIST=$(filter-out $(firstword $(PROGLIST)),$(PROGLIST))) $(eval PROGOBJ=$(filter-out $(firstword $(PROGOBJ)),$(PROGOBJ)))