[PATCH] Fix libc.so linker script
Jakub Jelinek
jakub@redhat.com
Sat Mar 5 16:42:00 GMT 2005
Hi!
The linker script uses $(slibdir) for libc.so.6 and $(libdir) for
libc_nonshared.a, so using $(inst_slibdir) for ld-linux.so.2 is at least
inconsistent. Either all paths must be non-inst_ ones, or all must be
inst_ ones. As the former is what everybody is used to, here is a patch
that changes it that way.
2005-03-05 Jakub Jelinek <jakub@redhat.com>
* Makerules ($(inst_libdir)/libc.so): Use $(slibdir) instead of
$(inst_slibdir) in AS_NEEDED directive.
--- libc/Makerules.jj 2005-02-25 14:44:59.000000000 +0100
+++ libc/Makerules 2005-03-05 14:10:03.604286875 +0100
@@ -972,7 +972,7 @@ $(inst_libdir)/libc.so: $(common-objpfx)
cat $<; \
echo 'GROUP ( $(slibdir)/libc.so$(libc.so-version)' \
'$(libdir)/$(patsubst %,$(libtype.oS),$(libprefix)$(libc-name))'\
- ' AS_NEEDED (' $(inst_slibdir)/$(rtld-installed-name) ') )' \
+ ' AS_NEEDED (' $(slibdir)/$(rtld-installed-name) ') )' \
) > $@.new
mv -f $@.new $@
Jakub
More information about the Libc-hacker
mailing list