diff options
author | Emese Revfy <[email protected]> | 2016-06-26 17:36:43 +0200 |
---|---|---|
committer | Kees Cook <[email protected]> | 2016-08-08 17:52:20 -0700 |
commit | 7040c83bfbaf2340d2f336dc7641ce909c8c2b4c (patch) | |
tree | 36e92533e72509891f9d9fad54e3202098739d4f | |
parent | 65d59ec8ad99e9d932ccca4daabb8e3fdafeb11b (diff) |
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 <[email protected]>
Signed-off-by: Emese Revfy <[email protected]>
[kees: clarified commit message]
Signed-off-by: Kees Cook <[email protected]>
-rw-r--r-- | scripts/gcc-plugins/Makefile | 3 |
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 |