gcc makefile - use group for ld to resolve symbols from libraries

pull/1718/head
0xc0170 2016-05-09 12:06:33 -05:00
parent 8681a8d53e
commit 58e47dc500
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ clean:
{% block target_project_elf %}
$(PROJECT).elf: $(OBJECTS) $(SYS_OBJECTS)
$(LD) $(LD_FLAGS) -T$(LINKER_SCRIPT) $(LIBRARY_PATHS) -o $@ $^ $(LIBRARIES) $(LD_SYS_LIBS) $(LIBRARIES) $(LD_SYS_LIBS)
$(LD) $(LD_FLAGS) -T$(LINKER_SCRIPT) $(LIBRARY_PATHS) -o $@ $^ -Wl,--start-group $(LIBRARIES) $(LD_SYS_LIBS) -Wl,--end-group
{% endblock %}
$(PROJECT).bin: $(PROJECT).elf