From 094bacdbd84627791b82db46b095558f34c36831 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 8 Nov 1995 02:28:15 +0000 Subject: * elf/Makefile (ldd): Make it executable. * Makeconfig (config-LDFLAGS): Find dynamic linker in $(slibdir). * Makeconfig (slibdir): New variable. * Makerules (install): Install libc.so in $(slibdir). * elf/Makefile (install-others): Install ld.so and ld-linux.so.1 in $(slibdir). --- Makeconfig | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Makeconfig') diff --git a/Makeconfig b/Makeconfig index 47c48d4615..e716776cb9 100644 --- a/Makeconfig +++ b/Makeconfig @@ -56,7 +56,7 @@ objdir = $(ARCH) endif endif -# $(common-objdir) is the place to put objects and +# $(common-objdir) is the place to put objects and # such that are not specific to a single subdir. ifdef objdir objpfx = $(objdir)/ @@ -135,6 +135,11 @@ ifndef libdir libdir = $(exec_prefix)/lib endif +# Where to install the shared library and dynamic linker. +ifndef slibdir +slibdir = $(exec_prefix)/lib +endif + # Prefix to put on files installed in $(libdir). For libraries `libNAME.a', # the prefix is spliced between `lib' and the name, so the linker switch # `-l$(libprefix)NAME' finds the library; for other files the prefix is @@ -281,7 +286,7 @@ ifndef +link endif ifndef config-LDFLAGS ifeq (yes,$(build-shared)) -config-LDFLAGS = -Wl,-dynamic-linker=$(libdir)/$(rtld-installed-name) +config-LDFLAGS = -Wl,-dynamic-linker=$(slibdir)/$(rtld-installed-name) endif endif ifndef link-libc -- cgit v1.2.3-70-g09d2