summaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins
diff options
context:
space:
mode:
authorEmese Revfy <re.emese@gmail.com>2016-06-26 17:36:43 +0200
committerKees Cook <keescook@chromium.org>2016-08-08 17:52:20 -0700
commit7040c83bfbaf2340d2f336dc7641ce909c8c2b4c (patch)
tree36e92533e72509891f9d9fad54e3202098739d4f /scripts/gcc-plugins
parent65d59ec8ad99e9d932ccca4daabb8e3fdafeb11b (diff)
downloadlinux-7040c83bfbaf2340d2f336dc7641ce909c8c2b4c.tar.bz2
gcc-plugins: Automate make rule generation
There's no reason to repeat the same names in the Makefile when the .so files have already been listed. The .o list can be generated from them. Reported-by: PaX Team <pageexec@freemail.hu> Signed-off-by: Emese Revfy <re.emese@gmail.com> [kees: clarified commit message] Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'scripts/gcc-plugins')
-rw-r--r--scripts/gcc-plugins/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/gcc-plugins/Makefile b/scripts/gcc-plugins/Makefile
index 88c8ec47232b..ee0a75d2a1c7 100644
--- a/scripts/gcc-plugins/Makefile
+++ b/scripts/gcc-plugins/Makefile
@@ -21,7 +21,6 @@ endif
$(HOSTLIBS)-y := $(GCC_PLUGIN)
always := $($(HOSTLIBS)-y)
-cyc_complexity_plugin-objs := cyc_complexity_plugin.o
-sancov_plugin-objs := sancov_plugin.o
+$(foreach p,$($(HOSTLIBS)-y:%.so=%),$(eval $(p)-objs := $(p).o))
clean-files += *.so