LTO: Pass CFLAGS to compiler for kernel module linking too.
commitbfd523f18b677f2fc741d195a1ce1b410a7ec9c2
authorzrj <rimvydas.jasinskas@gmail.com>
Fri, 17 Nov 2017 10:50:35 +0000 (17 12:50 +0200)
committerzrj <zrj@dragonflybsd.org>
Fri, 17 Nov 2017 11:32:39 +0000 (17 13:32 +0200)
treee6f3e924d04fbf334b51df5a070b4b9db037afd1
parent8172914b41e0b50782e103828c8770bcdac543f1
LTO: Pass CFLAGS to compiler for kernel module linking too.

Forgot to git add it in fa8104330967fab6248da216251a4382b39b1dab.
Linker still could link LTO'ed *.o objects, because ld is invoked by cc
with explicitly passed -plugin option that loads the liblto_plugin.so.
This only slightly changes how LTO is performed on kernel modules.

Note: this will need to be adjusted for clang -flto compatibility
when I will update the clangb version in git module.

Reported-by: dillon
sys/conf/kmod.mk