diff options
Diffstat (limited to 'Makeconfig')
-rw-r--r-- | Makeconfig | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Makeconfig b/Makeconfig index 5dd6d544d0..e0ec754883 100644 --- a/Makeconfig +++ b/Makeconfig @@ -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 |