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]

Re: Bulding glibc with new dependency changes report


On Sat, May 03, 2003 at 11:17:14AM -0500, Art Haas wrote:
> Hi.
> 
> A CVS pull from yesterday brought me the nice changes in dependency
> generation when building glibc. The build and test run all worked
> without a problem (GCC 3.3, i586-pc-linux-gnu, 2.4.20-ac1 headers), but
> I did see that libc.so re-linked itself several times during 'make
> check'. Other than that things worked fine.
> 
> Configuration command:
> 
> $ CFLAGS="-O2 -march=pentium-mmx" ./configure \
> --prefix=/usr \
> --enable-add-ons=linuxthreads
> --with-headers=/usr/src/linux-2.4.20-ac1/include

Roland commited some dependency fixes this morning, plus
the following patch fixes the bogus relink of libc.so during make check
in linuxthreads subdir:

2003-05-03  Jakub Jelinek  <jakub@redhat.com>

linuxthreads/
	* Makefile (tests-reverse): Link against $(objpfx)linklibc.so instead
	of $(objpfx)../libc.so.
	(($objpfx)linklibc.so): New rule.
	(generated): Add linklibc.so.

nptl/
	* Makefile (tests-reverse): Link against $(objpfx)linklibc.so instead
	of $(objpfx)../libc.so.
	(($objpfx)linklibc.so): New rule.
	(generated): Add linklibc.so.

--- libc/linuxthreads/Makefile	13 Apr 2003 18:58:27 -0000	1.1.1.45
+++ libc/linuxthreads/Makefile	3 May 2003 11:07:08 -0000	1.24
@@ -217,14 +217,17 @@ $(addprefix $(objpfx), \
   $(filter-out $(tests-static) $(tests-reverse) unload, \
     $(tests) $(test-srcs))): $(objpfx)libpthread.so \
 			     $(objpfx)libpthread_nonshared.a
-# $(objpfx)../libc.so is used instead of $(common-objpfx)libc.so,
+# $(objpfx)linklibc.so is used instead of $(common-objpfx)libc.so,
 # since otherwise libpthread.so comes before libc.so when linking.
 $(addprefix $(objpfx), $(tests-reverse)): \
-  $(objpfx)../libc.so $(objpfx)libpthread.so \
+  $(objpfx)linklibc.so $(objpfx)libpthread.so \
   $(objpfx)libpthread_nonshared.a
 $(addprefix $(objpfx),$(librt-tests)): $(common-objpfx)rt/librt.so
 $(objpfx)unload: $(common-objpfx)dlfcn/libdl.so
 $(objpfx)unload.out: $(objpfx)libpthread.so $(objpfx)libpthread_nonshared.a
+$(objpfx)linklibc.so: $(common-objpfx)libc.so
+	ln -s ../libc.so $@
+generated += linklibc.so
 else
 $(addprefix $(objpfx),$(tests) $(test-srcs)): $(objpfx)libpthread.a
 $(addprefix $(objpfx),$(librt-tests)): $(common-objpfx)rt/librt.a
--- libc/nptl/Makefile	2 May 2003 21:13:26 -0000	1.1.1.42
+++ libc/nptl/Makefile	3 May 2003 11:07:08 -0000	1.47
@@ -309,14 +309,18 @@ $(addprefix $(objpfx), \
     $(tests) $(test-srcs))): $(objpfx)libpthread.so \
 			     $(objpfx)libpthread_nonshared.a
 $(objpfx)tst-unload: $(common-objpfx)dlfcn/libdl.so
-# $(objpfx)../libc.so is used instead of $(common-objpfx)libc.so,
+# $(objpfx)linklibc.so is used instead of $(common-objpfx)libc.so,
 # since otherwise libpthread.so comes before libc.so when linking.
 $(addprefix $(objpfx), $(tests-reverse)): \
-  $(objpfx)../libc.so $(objpfx)libpthread.so \
+  $(objpfx)linklibc.so $(objpfx)libpthread.so \
   $(objpfx)libpthread_nonshared.a
 $(addprefix $(objpfx),$(tests-static)): $(objpfx)libpthread.a
 
 $(objpfx)tst-atfork2.out: $(objpfx)tst-atfork2mod.so
+
+$(objpfx)linklibc.so: $(common-objpfx)libc.so
+	ln -s ../libc.so $@
+generated += linklibc.so
 else
 $(addprefix $(objpfx),$(tests) $(test-srcs)): $(objpfx)libpthread.a
 endif


	Jakub


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