]> git.ipfire.org Git - thirdparty/kernel/stable.git/blobdiff - scripts/Makefile.modfinal
add support for Clang CFI
[thirdparty/kernel/stable.git] / scripts / Makefile.modfinal
index 735e11e9041b9d6b8e9c5d7a05aca5b3be24a582..dd87cea9fba7852e7e8b9d3f729205f1dd5945c4 100644 (file)
@@ -23,7 +23,7 @@ modname = $(notdir $(@:.mod.o=))
 part-of-module = y
 
 quiet_cmd_cc_o_c = CC [M]  $@
-      cmd_cc_o_c = $(CC) $(c_flags) -c -o $@ $<
+      cmd_cc_o_c = $(CC) $(filter-out $(CC_FLAGS_CFI), $(c_flags)) -c -o $@ $<
 
 %.mod.o: %.mod.c FORCE
        $(call if_changed_dep,cc_o_c)