This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Add missing dependencies for test-modules


test-modules is built with gcc, which uses libc.so and ld.so. But they
aren't on the dependency list. This patch will make sure that libc.so
is built before test-modules.


H.J.
---
2005-04-13  H.J. Lu  <hongjiu.lu@intel.com>

	[BZ #844]
	* elf ($(test-modules)): Add missing dependencies.

--- elf/Makefile.smp	2005-03-27 15:06:21.000000000 -0800
+++ elf/Makefile	2005-04-13 12:21:57.000000000 -0700
@@ -481,6 +481,10 @@ reldep9mod1.so-no-z-defs = yes
 unload3mod4.so-no-z-defs = yes
 unload4mod1.so-no-z-defs = yes
 
+# Make sure that libc.so is built before any test-modules.
+$(test-modules): $(sort $(filter $(common-objpfx)lib%,$(link-libc))) \
+		 $(common-objpfx)shlib.lds $(csu-objpfx)abi-note.o
+
 # filtmod1.so has a special rule
 $(filter-out $(objpfx)filtmod1.so, $(test-modules)): $(objpfx)%.so: $(objpfx)%.os
 	$(build-module)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]