about summary refs log tree commit diff
path: root/elf/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'elf/Makefile')
-rw-r--r--elf/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/elf/Makefile b/elf/Makefile
index e0ae40b9fd..b0923b2b6d 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -51,4 +51,5 @@ $(objpfx)ld.so: $(rtld-routines:%=$(objpfx)%.so) \
 $(objpfx)libdl.so: $(objpfx)libdl_pic.a $(common-objpfx)libc.so $(objpfx)ld.so
 	$(patsubst %/,cd %;,$(objpfx)) \
 	$(LINK.o) -shared -o $(@:$(objpfx)%=%) \
-		  $(LDFLAGS-dl.so) -Wl,--whole-archive $(^:$(objpfx)%=%)
+		  $(LDFLAGS.so) $(LDFLAGS-dl.so) \
+		  -Wl,--whole-archive $(^:$(objpfx)%=%)