9 years, 10 months ago.

makefile anomaly

In the makefile of an exported program the list of libraries and system libraries appears twice in the link command line. Is that necessary or a typo?

[code] $(PROJECT).elf: $(OBJECTS) $(SYS_OBJECTS) $(LD) $(LD_FLAGS) -T$(LINKER_SCRIPT) $(LIBRARY_PATHS) -o $@ $^ $(LIBRARIES) $(LD_SYS_LIBS) $(LIBRARIES) $(LD_SYS_LIBS) [<<</code]

1 Answer

9 years, 10 months ago.

Hello,

the mbed library requires functionality from some of those libraries and also redefine some functionality of other libraries.

You can test it, remove the inclusion of libraries after mbed, to see.

Regards,
0xc0170

Removing the duplication did not appear to affect the build of the two programs I checked.

Does mbed modify stdc++, supc++, m, c or gcc?

posted by Gary Richardson 13 Jun 2014