diff options
| author | Sudar Muthu <sudar@sudarmuthu.com> | 2018-10-07 11:19:56 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-07 11:19:56 +0530 |
| commit | 5a0c80bf0c8fbfd5a997998a7c08ba9596c72a3f (patch) | |
| tree | beea7a066fd1a2a7af74f2fc4447f8b26a34f631 /Arduino.mk | |
| parent | fe84c591944f74c902466d813fae0d164761dc59 (diff) | |
| parent | ed608ce658e66b8aa98ab0b0c31582468cab588d (diff) | |
Merge pull request #583 from wingunder/move_core_link_last
Moved CORE_LIB to the last position of the defined linked objects.
Diffstat (limited to 'Arduino.mk')
| -rw-r--r-- | Arduino.mk | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1610,7 +1610,7 @@ ifeq ($(findstring sam, $(strip $(ARCHITECTURE))), sam) $(CC) $(LINKER_SCRIPTS) -Wl,-Map=$(OBJDIR)/$(TARGET).map -o $@ $(LOCAL_OBJS) $(OTHER_OBJS) $(OTHER_LIBS) $(LDFLAGS) $(CORE_LIB) -Wl,--end-group # otherwise traditional else - $(CC) $(LDFLAGS) -o $@ $(LOCAL_OBJS) $(CORE_LIB) $(OTHER_OBJS) $(OTHER_LIBS) -lc -lm $(LINKER_SCRIPTS) + $(CC) $(LDFLAGS) -o $@ $(LOCAL_OBJS) $(OTHER_OBJS) $(OTHER_LIBS) $(CORE_LIB) -lc -lm $(LINKER_SCRIPTS) endif $(CORE_LIB): $(CORE_OBJS) $(LIB_OBJS) $(PLATFORM_LIB_OBJS) $(USER_LIB_OBJS) |
