The zkey and zkey-cryptsetup tools are relinked during "make install" using a default rule, so the distro LDFLAGS are not passed to it. Commit 0bf4f1b957983267ccaf9b6b70c68c62bf1471f2 has no effect on it.
Thanks for fixing the main issue. What remains is that the *.o.d source/header dependency files are still regenerated during install, I haven't seen it for other dirs than zkey.
The zkey and zkey-cryptsetup tools are relinked during "make install" using a default rule, so the distro LDFLAGS are not passed to it. Commit 0bf4f1b957983267ccaf9b6b70c68c62bf1471f2 has no effect on it.