Application.mk: Generate temporary name for linker object

This commit is contained in:
anchao 2018-09-05 06:43:46 -06:00 committed by Gregory Nutt
parent c24703e243
commit 1632ec917e

View File

@ -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)))