eclipse-embed-cdt / eclipse-plugins

The Eclipse Embedded CDT plug-ins for Arm & RISC-V C/C++ developers (formerly known as the GNU MCU Eclipse plug-ins). Includes the archive of previous plug-ins versions, as Releases.
http://eclipse-embed-cdt.github.io/
Eclipse Public License 2.0
554 stars 130 forks source link

How to pass -Wl,--start-group -lc_nano -lgcc -Wl,--end-group #590

Closed fanghuaqi closed 8 months ago

fanghuaqi commented 8 months ago

Hi @ilg-ul ,

When build with IDE generated Makefile, is there a way to group the requried library using -Wl,--start-group $(LIBS) -Wl,--end-group, so we can solve undefined symbol issue.

Thanks

ilg-ul commented 8 months ago

You can add additional linker options, but I'm not sure you can use variables (like LIBS), so you probably have to list the libraries explicitly.

For support, please use the the project Discussions.