Drop hardcoded environment variables and put $(LDFLAGS) at the end Since GCC 9 and above passes -Wl,--as-needed by default to the linker, we need to put $(LDFLAGS) behind $(SOURCES), otherwise root-tail FTBFS with gcc-9. Also pass $CPPFLAGS (as in Debian's Makefile from previous package releases) to avoid hardening-no-fortify-functions lintian warning.