diff --git a/Makefile.include b/Makefile.include index 515f7ffac..521016f00 100644 --- a/Makefile.include +++ b/Makefile.include @@ -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