(ld.so): Pass -rpath=$(default-rpath).
authorroland <roland>
Fri, 17 Nov 1995 02:29:13 +0000 (02:29 +0000)
committerroland <roland>
Fri, 17 Nov 1995 02:29:13 +0000 (02:29 +0000)
elf/Makefile

index 08288f8..4a1adb8 100644 (file)
@@ -60,7 +60,8 @@ $(objpfx)librtld.so: $(rtld-routines:%=$(objpfx)%.so) \
                  '-Wl,-(' $^ -lgcc '-Wl,-)'
 
 $(objpfx)ld.so $(objpfx)ld-linux.so.1: $(objpfx)librtld.so
-       $(LINK.o) -nostdlib -nostartfiles -shared -o $@ $^
+       $(LINK.o) -nostdlib -nostartfiles -shared -o $@ \
+                 -Wl,-rpath=$(default-rpath) $^
 
 # The Linux-compatible dynamic linker shared object is just the same
 # with one object file of compatibility initialization code added.