summaryrefslogtreecommitdiffstats
path: root/main/linux-grsec/makefile-constify.patch
blob: 679bd1ab2d28781fb5e0b86c1bfbeb18e70eacb8 (plain)
1
2
3
4
5
6
7
8
9
10
--- ./Makefile.orig
+++ ./Makefile
@@ -1383,6 +1383,7 @@
 $(module-dirs): crmodverdir $(objtree)/Module.symvers
 	$(Q)$(MAKE) $(build)=$(patsubst _module_%,%,$@)
 
+modules: KBUILD_CFLAGS += $(CONSTIFY_PLUGIN) $(STACKLEAK_PLUGIN)
 modules: $(module-dirs)
 	@$(kecho) '  Building modules, stage 2.';
 	$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost