NetworkManager/examples
Lucas Rangit Magasweran 843ea77e93 examples: linker requires that library dependencies follow use
On modern distributions, ld runs with the '--as-needed' option
enabled by default, meaning library dependencies must come after
files that require them. Also, this allows indirect linking so the
build commands can be simplified.

The alternative is to add the '-Wl,--no-as-needed' gcc option or
use the top-level Makefile.

Tested on:
 * Ubuntu 16.04.3 with gcc Ubuntu 5.4.1-8ubuntu1
 * Fedora 24 with gcc Red Hat 6.1.1-3

Signed-off-by: Lucas Magasweran <lucas.magasweran@ieee.org>

https://mail.gnome.org/archives/networkmanager-list/2017-September/msg00022.html
https://mail.gnome.org/archives/networkmanager-list/2017-September/msg00023.html
https://mail.gnome.org/archives/networkmanager-list/2017-September/msg00025.html
2017-09-21 13:14:56 +02:00
..
C examples: linker requires that library dependencies follow use 2017-09-21 13:14:56 +02:00
dispatcher build: merge "examples/Makefile.am" into toplevel Makefile 2016-10-21 17:37:57 +02:00
lua/lgi build: merge "examples/Makefile.am" into toplevel Makefile 2016-10-21 17:37:57 +02:00
nm-conf.d device: add spec "driver:" to match devices 2017-03-17 17:40:00 +01:00
python examples: add setting-user-data.py 2017-05-06 14:53:09 +02:00
ruby build: merge "examples/Makefile.am" into toplevel Makefile 2016-10-21 17:37:57 +02:00
shell build: merge "examples/Makefile.am" into toplevel Makefile 2016-10-21 17:37:57 +02:00