7729eb
commit 6548a9bdba95b3e1fcdbd85445342467e4b0cd4f
7729eb
Author: H.J. Lu <hjl.tools@gmail.com>
7729eb
Date:   Fri Sep 24 08:56:42 2021 -0700
7729eb
7729eb
    Avoid warning: overriding recipe for .../tst-ro-dynamic-mod.so
7729eb
    
7729eb
    Add tst-ro-dynamic-mod to modules-names-nobuild to avoid
7729eb
    
7729eb
    ../Makerules:767: warning: ignoring old recipe for target '.../elf/tst-ro-dynamic-mod.so'
7729eb
    
7729eb
    This updates BZ #28340 fix.
7729eb
    
7729eb
    (cherry picked from commit 15e6d6785ac2935bb963506b47a37b3d1f728952)
7729eb
7729eb
diff --git a/elf/Makefile b/elf/Makefile
7729eb
index de854b4d1a815bd3..118d579c42c38110 100644
7729eb
--- a/elf/Makefile
7729eb
+++ b/elf/Makefile
7729eb
@@ -399,8 +399,9 @@ endif
7729eb
 modules-execstack-yes = tst-execstack-mod
7729eb
 extra-test-objs += $(addsuffix .os,$(strip $(modules-names)))
7729eb
 
7729eb
-# filtmod1.so, tst-big-note-lib.so have special rules.
7729eb
-modules-names-nobuild := filtmod1 tst-big-note-lib
7729eb
+# filtmod1.so, tst-big-note-lib.so, tst-ro-dynamic-mod.so have special
7729eb
+# rules.
7729eb
+modules-names-nobuild := filtmod1 tst-big-note-lib tst-ro-dynamic-mod
7729eb
 
7729eb
 tests += $(tests-static)
7729eb