Put linked libraries in LDLIBS master
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 28 Dec 2022 10:34:36 +0000 (11:34 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 28 Dec 2022 10:34:36 +0000 (11:34 +0100)
commit12d7488f8b722d10cde84dc51286dfc2f3cddcc1
treed3ace2b2b797b34d975d725d1e593c9105a0966f
parent15049b0cfc1d477820330271f2e5e109126cf94d
Put linked libraries in LDLIBS

This fixes building when compilers use -Wl,--as-needed, ensuring that
the libraries get specified after the source files while still using the
default implicit rule for building .c files.

Ths supersedes the proposed PR #11 on GitHub.
Makefile