Commit 7040c83b authored by Emese Revfy's avatar Emese Revfy Committed by Kees Cook

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: default avatarPaX Team <pageexec@freemail.hu>
Signed-off-by: default avatarEmese Revfy <re.emese@gmail.com>
[kees: clarified commit message]
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
parent 65d59ec8
...@@ -21,7 +21,6 @@ endif ...@@ -21,7 +21,6 @@ endif
$(HOSTLIBS)-y := $(GCC_PLUGIN) $(HOSTLIBS)-y := $(GCC_PLUGIN)
always := $($(HOSTLIBS)-y) always := $($(HOSTLIBS)-y)
cyc_complexity_plugin-objs := cyc_complexity_plugin.o $(foreach p,$($(HOSTLIBS)-y:%.so=%),$(eval $(p)-objs := $(p).o))
sancov_plugin-objs := sancov_plugin.o
clean-files += *.so clean-files += *.so
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment