]> git.codecow.com Git - Monocypher.git/commit
makefile: Honor LDFLAGS variable if given
authorFabio Scotoni <34964387+fscoto@users.noreply.github.com>
Thu, 12 Dec 2019 08:48:36 +0000 (09:48 +0100)
committerFabio Scotoni <34964387+fscoto@users.noreply.github.com>
Thu, 12 Dec 2019 08:48:36 +0000 (09:48 +0100)
commit1655eb2ec8823e3c7e2cbe383bf368a4d8e6d9a0
treebac4c81a1d2294904b531d0a10e5de637e740e81
parentc6ed5746c20de9ec5dfea5a3bf0a13320099bcd3
makefile: Honor LDFLAGS variable if given

This allows specifying e.g. hardening options like -Wl,-z,relro
for link-time options.
It *is* normally possible to add these to CFLAGS,
but LDFLAGS is the established way to do this and tooling expects
it to work.
See also POSIX on make(1), whose default rules use LDFLAGS.
makefile