aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-06-11 21:41:42 +0000
committerRoland McGrath <roland@gnu.org>1996-06-11 21:41:42 +0000
commita89d30d44492de151143ba26ae9c62ea2b79efb8 (patch)
tree25ec0b8f4a0f8145e88bf4dcd4dc1ea564bf84f0
parentd8c7ef98c193aa032327efcb7cab081da4025908 (diff)
downloadglibc-a89d30d44492de151143ba26ae9c62ea2b79efb8.zip
glibc-a89d30d44492de151143ba26ae9c62ea2b79efb8.tar.gz
glibc-a89d30d44492de151143ba26ae9c62ea2b79efb8.tar.bz2
* elf/Makefile (lib-noranlib): Move rule adding deps for ld.so et al
to after `include ../Rules', so $(rtld-installed-name) is defined.
-rw-r--r--ChangeLog3
-rw-r--r--elf/Makefile12
2 files changed, 10 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 720acbb..4e9f041 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
Tue Jun 11 15:09:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
+ * elf/Makefile (lib-noranlib): Move rule adding deps for ld.so et al
+ to after `include ../Rules', so $(rtld-installed-name) is defined.
+
* string/basename.c (basename): Cast FILENAME to char * for return.
* Makerules ($(libdir)/libc.so): Put $(rtld-installed) name between
diff --git a/elf/Makefile b/elf/Makefile
index 5a550a1..59906a0 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -51,11 +51,6 @@ generated = librtld.so dl-allobjs.so
install-others = $(slibdir)/$(rtld-installed-name)
install-bin = ldd
-# Make sure these things are built in the `make lib' pass so they can be used
-# to run programs during the `make others' pass.
-lib-noranlib: $(objpfx)$(rtld-installed-name) \
- $(addprefix $(objpfx),$(extra-objs))
-
ifneq (,$(filter linux% linux,$(config-os)))
extra-objs += linux-compat.so
install-others += $(slibdir)/ld-linux.so.1
@@ -66,6 +61,13 @@ endif
include ../Rules
+ifeq (yes, $(build-shared))
+# Make sure these things are built in the `make lib' pass so they can be used
+# to run programs during the `make others' pass.
+lib-noranlib: $(objpfx)$(rtld-installed-name) \
+ $(addprefix $(objpfx),$(extra-objs))
+endif
+
# Command to link into a larger single relocatable object.
reloc-link = $(LINK.o) -nostdlib -nostartfiles -r -o $@