(config-LDFLAGS): Define to -Wl-dynamic-linker=$(libdir)$(rtld-installed-name).
authorroland <roland>
Mon, 9 Oct 1995 07:05:26 +0000 (07:05 +0000)
committerroland <roland>
Mon, 9 Oct 1995 07:05:26 +0000 (07:05 +0000)
(rtld-installed-name): New variable.

Makeconfig

index 5dd6d54..e0ec754 100644 (file)
@@ -272,6 +272,11 @@ ifndef +link
        $(^:$(common-objpfx)libc.a=$(link-libc)) \
        $(addprefix $(csu-objpfx),$(+postinit))
 endif
+ifndef config-LDFLAGS
+ifeq (yes,$(build-shared))
+config-LDFLAGS = -Wl,-dynamic-linker=$(libdir)$(rtld-installed-name)
+endif
+endif
 ifndef link-libc
 ifeq (yes,$(build-shared))
 link-libc = -L$(common-objdir) -lc $(gnulib)
@@ -292,6 +297,12 @@ else
 csu-objpfx = $(..)csu/
 endif
 
+ifeq (yes,$(build-shared))
+ifndef rtld-installed-name
+rtld-installed-name = ld.so
+endif
+endif
+
 ifndef LD
 LD := ld -X
 endif