Changed linking to use CC instead of LD to make things work with the current Makefiles (particularly platform/native). Not sure if this change is a good thing; it not, it should be reverted once we get the other Makefiles up to speed.

This commit is contained in:
adamdunkels 2006-08-08 13:06:54 +00:00
parent 7b791de692
commit 2fe1ccf8c5

View File

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