From f01010de9b930aed92bac4f9d5236bd0a2ec6a87 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 31 Jul 1999 07:21:56 +0000 Subject: Update. * Makeconfig (link-libc): Always define it, not only for shared builds. --- Makeconfig | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'Makeconfig') diff --git a/Makeconfig b/Makeconfig index e1e5360..fb11c28 100644 --- a/Makeconfig +++ b/Makeconfig @@ -407,13 +407,6 @@ ifeq (yes,$(build-shared)) link-libc = -Wl,-rpath-link=$(rpath-link) \ $(common-objpfx)libc.so$(libc.so-version) \ $(common-objpfx)$(patsubst %,$(libtype.oS),c) $(gnulib) -# Choose the default search path for the dynamic linker based on -# where we will install libraries. -ifneq ($(libdir),$(slibdir)) -default-rpath = $(slibdir):$(libdir) -else -default-rpath = $(libdir) -endif # This is how to find at build-time things that will be installed there. rpath-dirs = math elf dlfcn nss nis db2 rt resolv rpath-link = \ @@ -427,6 +420,14 @@ link-libc = $(common-objpfx)libc.a $(otherlibs) $(gnulib) $(common-objpfx)libc.a endif endif +# Choose the default search path for the dynamic linker based on +# where we will install libraries. +ifneq ($(libdir),$(slibdir)) +default-rpath = $(slibdir):$(libdir) +else +default-rpath = $(libdir) +endif + ifndef link-extra-libs ifeq (yes,$(build-shared)) ifneq ($(common-objpfx),$(objpfx)) -- cgit v1.1