If we explicitly do a

ifndef LD
  LD = $(CC)
endif

we could as well use $(LD) for linking ;-)
This commit is contained in:
oliverschmidt 2006-12-31 13:34:59 +00:00
parent 074e74a584
commit 99fd132d3c

View file

@ -134,7 +134,7 @@ endif
ifndef CUSTOM_RULE_LINK
%.$(TARGET): %.co $(PROJECT_OBJECTFILES) contiki-$(TARGET).a
$(CC) $(LDFLAGS) $(TARGET_STARTFILES) $(filter-out %.a,$^) $(filter %.a,$^) $(TARGET_LIBFILES) -o $@
$(LD) $(LDFLAGS) $(TARGET_STARTFILES) $(filter-out %.a,$^) $(filter %.a,$^) $(TARGET_LIBFILES) -o $@
endif
# The target below looks weird, but I had to add the @ to avoid complaints