diff mbox series

Avoid Makefile:1918: warning: overriding recipe for ...tst-ro-dynamic-mod.so

Message ID 20210924160016.2324869-1-hjl.tools@gmail.com
State Committed
Commit 15e6d6785ac2935bb963506b47a37b3d1f728952
Headers show
Series Avoid Makefile:1918: warning: overriding recipe for ...tst-ro-dynamic-mod.so | expand

Checks

Context Check Description
dj/TryBot-apply_patch success Patch applied to master at the time it was sent
dj/TryBot-32bit success Build for i686

Commit Message

H.J. Lu Sept. 24, 2021, 4 p.m. UTC
Add tst-ro-dynamic-mod to modules-names-nobuild to avoid

../Makerules:767: warning: ignoring old recipe for target '.../elf/tst-ro-dynamic-mod.so'

This updates BZ #28340 fix.
---
 elf/Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Comments

H.J. Lu Sept. 25, 2021, 3:53 p.m. UTC | #1
On Fri, Sep 24, 2021 at 9:00 AM H.J. Lu <hjl.tools@gmail.com> wrote:
>
> Add tst-ro-dynamic-mod to modules-names-nobuild to avoid
>
> ../Makerules:767: warning: ignoring old recipe for target '.../elf/tst-ro-dynamic-mod.so'
>
> This updates BZ #28340 fix.
> ---
>  elf/Makefile | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/elf/Makefile b/elf/Makefile
> index 0cdccaacb3..26986c0692 100644
> --- a/elf/Makefile
> +++ b/elf/Makefile
> @@ -402,8 +402,9 @@ endif
>  modules-execstack-yes = tst-execstack-mod
>  extra-test-objs += $(addsuffix .os,$(strip $(modules-names)))
>
> -# filtmod1.so, tst-big-note-lib.so have special rules.
> -modules-names-nobuild := filtmod1 tst-big-note-lib
> +# filtmod1.so, tst-big-note-lib.so, tst-ro-dynamic-mod.so have special
> +# rules.
> +modules-names-nobuild := filtmod1 tst-big-note-lib tst-ro-dynamic-mod
>
>  tests += $(tests-static)
>
> --
> 2.31.1
>

I am checking it in as an obvious fix.
diff mbox series

Patch

diff --git a/elf/Makefile b/elf/Makefile
index 0cdccaacb3..26986c0692 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -402,8 +402,9 @@  endif
 modules-execstack-yes = tst-execstack-mod
 extra-test-objs += $(addsuffix .os,$(strip $(modules-names)))
 
-# filtmod1.so, tst-big-note-lib.so have special rules.
-modules-names-nobuild := filtmod1 tst-big-note-lib
+# filtmod1.so, tst-big-note-lib.so, tst-ro-dynamic-mod.so have special
+# rules.
+modules-names-nobuild := filtmod1 tst-big-note-lib tst-ro-dynamic-mod
 
 tests += $(tests-static)