build: use LDADD instead of LDFLAGS to specify libs to link to when building executables
Use foo_LDADD instead of foo_LDFLAGS to specify the libraries to link to. This should make sure arguments are passed to the linker in the right order, and makes LDFLAGS usable again. Based on initial patch by Brian Cameron <firstname.lastname@example.org> Fixes #615697.
Showing with 18 additions and 18 deletions