git: LTO: Pass CFLAGS to compiler for kernel module linking too.

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Fri Nov 17 03:11:46 PST 2017


commit bfd523f18b677f2fc741d195a1ce1b410a7ec9c2
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Fri Nov 17 12:50:35 2017 +0200

    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

Summary of changes:
 sys/conf/kmod.mk | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bfd523f18b677f2fc741d195a1ce1b410a7ec9c2


-- 
DragonFly BSD source repository


More information about the Commits mailing list