[riot-notifications] [RIOT-OS/RIOT] makefiles: introduce 'LIBS' variable (#11111)

Gaƫtan Harter notifications at github.com
Mon Mar 11 14:49:16 CET 2019

I picked the same name as in the `ld -r` PR but may need to be adapted and documentation adapted to work more with `whole-archive` only.
It is one of the reason to split it out to focus on this discussion only without the other issues :)

It should point to archives that must be linked as "libraries" without `--whole-archive`.
There are modules which are real libraries that cannot be linked by considering all objects.

The issue is that the documentation does not name them but only describe a usage:

           For each archive mentioned on the command line after the --whole-archive option, include every object file in the archive in
           the link, rather than searching the archive for the required object files.  This is normally used to turn an archive file into
           a shared library, forcing every object to be included in the resulting shared library.  This option may be used more than

           Two notes when using this option from gcc: First, gcc doesn't know about this option, so you have to use -Wl,-whole-archive.
           Second, don't forget to use -Wl,-no-whole-archive after your list of archives, because gcc will add its own list of archives
           to your link and you may not want this flag to affect those as well.

All help on naming these with references is welcome.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190311/ef02bc6b/attachment.html>

More information about the notifications mailing list