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

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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: make warning?


On Wed, Jan 01, 2003 at 12:56:54PM +0100, Andreas Jaeger wrote:
> 
> With current CVS I get:
> 
> make[2]: Entering directory `/cvs/libc/linuxthreads'
> Makefile:117: warning: overriding commands for target `/builds/test-install/lib/libpthread.so'
> ../o-iterator.mk:9: warning: ignoring old commands for target `/builds/test-install/lib/libpthread.so'
> make[2]: Nothing to be done for `subdir_lib'.
> 
> What's wrong here?

This is the same warning as has been present in NPTL builds for quite some
time already.
I tried to do something about it yesterday, but haven't succeeded.
The thing is that the makefile chunk at ~ line 950 in Makerules defines
$(inst_libdir)/libpthread.so rule whcih {linuxthreads,nptl}/Makefile
overrides (because it wants to install a linker script, not a symlink).
This warning went away, but another one appeared (and that one was far
less clear on what's going on).

--- libc/Makerules.jj	2002-12-31 01:14:34.000000000 +0100
+++ libc/Makerules	2002-12-31 01:16:25.000000000 +0100
@@ -947,7 +947,7 @@ ifneq (,$(versioned))
 define o-iterator-doit
 $(inst_libdir)/$o: $(inst_slibdir)/$o$($o-version) $(+force); $$(make-link)
 endef
-object-suffixes-left := $(versioned)
+object-suffixes-left := $(filter-out $(libdir-linker-script), $(versioned))
 include $(o-iterator)
 
 # Make symlinks in the build directory, because the versioned names might
--- libc/nptl/Makefile.jj	2002-12-30 19:40:54.000000000 +0100
+++ libc/nptl/Makefile	2002-12-31 01:34:54.000000000 +0100
@@ -173,6 +173,10 @@ endif
 # These tests are linked with libc before libpthread
 tests-reverse += tst-cancel5
 
+# Tell Makerules $(inst_libdir)/libpthread.so is a linker script
+# handled here.
+libdir-linker-script += libpthread.so
+
 include ../Rules
 
 # What we install as libpthread.so for programs to link against is in fact a
--- libc/linuxthreads/Makefile.jj	2002-12-30 19:40:54.000000000 +0100
+++ libc/linuxthreads/Makefile	2002-12-31 01:34:54.000000000 +0100
@@ -173,6 +173,10 @@ endif
 # These tests are linked with libc before libpthread
 tests-reverse += tst-cancel5
 
+# Tell Makerules $(inst_libdir)/libpthread.so is a linker script
+# handled here.
+libdir-linker-script += libpthread.so
+
 include ../Rules
 
 # What we install as libpthread.so for programs to link against is in fact a


	Jakub


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