* elf/Makefile (test-extras): Define this instead of test-srcs.
authorRoland McGrath <roland@gnu.org>
Mon, 23 Sep 2002 17:43:42 +0000 (17:43 +0000)
committerRoland McGrath <roland@gnu.org>
Mon, 23 Sep 2002 17:43:42 +0000 (17:43 +0000)
* Makerules (all-nonlib): Include $(test-extras) too.

ChangeLog
Makerules
elf/Makefile

index e47cf4d..a4fe591 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-09-23  Roland McGrath  <roland@redhat.com>
+
+       * elf/Makefile (test-extras): Define this instead of test-srcs.
+       * Makerules (all-nonlib): Include $(test-extras) too.
+
 2002-09-21  Carlos O'Donell  <carlos@baldric.uwo.ca>
 
        * sysdeps/hppa/abort-instr.h: New file.
index 59fcdae..dee6820 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -1040,7 +1040,7 @@ check: tests
 .PHONY: xcheck
 xcheck: xtests
 
-all-nonlib = $(strip $(tests) $(xtests) $(test-srcs) $(others))
+all-nonlib = $(strip $(tests) $(xtests) $(test-srcs) $(test-extras) $(others))
 ifneq (,$(all-nonlib))
 cpp-srcs-left = $(all-nonlib:=.c)
 lib := tests
index ddc7a54..e452ecc 100644 (file)
@@ -150,7 +150,8 @@ modules-vis-yes = vismod1 vismod2 vismod3
 modules-nodelete-yes = nodelmod1 nodelmod2 nodelmod3 nodelmod4
 modules-nodlopen-yes = nodlopenmod nodlopenmod2
 extra-objs += $(addsuffix .os,$(strip $(modules-names)))
-test-srcs += $(modules-names)
+# We need this variable to be sure the test modules get the right CPPFLAGS.
+test-extras += $(modules-names)
 
 include ../Rules