Mon Mar 18 13:20:46 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
authorroland <roland>
Mon, 18 Mar 1996 18:30:10 +0000 (18:30 +0000)
committerroland <roland>
Mon, 18 Mar 1996 18:30:10 +0000 (18:30 +0000)
* elf/Makefile (rtld-link): New canned sequence.
(ld.so, ld-linux.so.1): Use it.  Pass -soname option.

elf/Makefile

index e89bf7b..a77460d 100644 (file)
@@ -61,9 +61,15 @@ $(objpfx)librtld.so: $(rtld-routines:%=$(objpfx)%.so) \
        $(LINK.o) -nostdlib -nostartfiles -r -o $@ \
                  '-Wl,-(' $^ -lgcc '-Wl,-)'
 
-$(objpfx)ld.so $(objpfx)ld-linux.so.1: $(objpfx)librtld.so
-       $(LINK.o) -nostdlib -nostartfiles -shared -o $@ \
-                 -Wl,-rpath=$(default-rpath) $^
+$(objpfx)ld.so: $(objpfx)librtld.so
+       $(rtld-link) -Wl,-soname=$(rtld-installed-name)
+$(objpfx)ld-linux.so.1: $(objpfx)librtld.so
+       $(rtld-link) -Wl,-soname=ld-linux.so.1
+
+define rtld-link
+$(LINK.o) -nostdlib -nostartfiles -shared -o $@ \
+         -Wl,-rpath=$(default-rpath) $^
+endef
 
 # The Linux-compatible dynamic linker shared object is just the same
 # with one object file of compatibility initialization code added.