Skip to content

Commit 7040c83

Browse files
ephox-gcc-pluginskees
authored andcommitted
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>
1 parent 65d59ec commit 7040c83

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/gcc-plugins/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ endif
2121
$(HOSTLIBS)-y := $(GCC_PLUGIN)
2222
always := $($(HOSTLIBS)-y)
2323

24-
cyc_complexity_plugin-objs := cyc_complexity_plugin.o
25-
sancov_plugin-objs := sancov_plugin.o
24+
$(foreach p,$($(HOSTLIBS)-y:%.so=%),$(eval $(p)-objs := $(p).o))
2625

2726
clean-files += *.so

0 commit comments

Comments
 (0)