diff mbox

Automate make rule generation for gcc plugin objects

Message ID 20160626173643.c05fd4d559ee9214ad1253c6@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Emese Revfy June 26, 2016, 3:36 p.m. UTC
Reported-by: PaX Team <pageexec@freemail.hu>
Signed-off-by: Emese Revfy <re.emese@gmail.com>
---
 scripts/gcc-plugins/Makefile | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

Comments

Kees Cook July 6, 2016, 6:55 p.m. UTC | #1
On Sun, Jun 26, 2016 at 11:36 AM, Emese Revfy <re.emese@gmail.com> wrote:
>
> Reported-by: PaX Team <pageexec@freemail.hu>
> Signed-off-by: Emese Revfy <re.emese@gmail.com>

I've added a commit message body and applied this to my tree.

-Kees

> ---
>  scripts/gcc-plugins/Makefile | 5 +----
>  1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/scripts/gcc-plugins/Makefile b/scripts/gcc-plugins/Makefile
> index a3f8ca4a..898449d 100644
> --- a/scripts/gcc-plugins/Makefile
> +++ b/scripts/gcc-plugins/Makefile
> @@ -20,9 +20,6 @@ endif
>
>  $(HOSTLIBS)-y := $(GCC_PLUGIN)
>  always := $($(HOSTLIBS)-y)
> -
> -cyc_complexity_plugin-objs := cyc_complexity_plugin.o
> -sancov_plugin-objs := sancov_plugin.o
> -latent_entropy_plugin-objs := latent_entropy_plugin.o
> +$(foreach p,$($(HOSTLIBS)-y:%.so=%),$(eval $(p)-objs := $(p).o))
>
>  clean-files += *.so
> --
> 2.8.1
diff mbox

Patch

diff --git a/scripts/gcc-plugins/Makefile b/scripts/gcc-plugins/Makefile
index a3f8ca4a..898449d 100644
--- a/scripts/gcc-plugins/Makefile
+++ b/scripts/gcc-plugins/Makefile
@@ -20,9 +20,6 @@  endif
 
 $(HOSTLIBS)-y := $(GCC_PLUGIN)
 always := $($(HOSTLIBS)-y)
-
-cyc_complexity_plugin-objs := cyc_complexity_plugin.o
-sancov_plugin-objs := sancov_plugin.o
-latent_entropy_plugin-objs := latent_entropy_plugin.o
+$(foreach p,$($(HOSTLIBS)-y:%.so=%),$(eval $(p)-objs := $(p).o))
 
 clean-files += *.so