Trying to build kld for MIPS I stumbled upon some controversy with LDFLAGS: Through all share/mk/bsd.*.mk files it is consistently used with CC, but in sys/conf/kmod.mk it's used directly with LD and in cobination with flags like -Wl,-foo it causes errors. So is usage of LDFLAGS in sys/conf/kmod.mk correct?