This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
PATCH: Add missing dependencies for test-modules
- From: "H. J. Lu" <hjl at lucon dot org>
- To: GNU C Library <libc-alpha at sources dot redhat dot com>
- Date: Wed, 13 Apr 2005 13:21:13 -0700
- Subject: 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)