summaryrefslogtreecommitdiff
path: root/libc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libc/Makefile')
-rw-r--r--libc/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/Makefile b/libc/Makefile
index 33c5bf9e5..18142f9ee 100644
--- a/libc/Makefile
+++ b/libc/Makefile
@@ -46,13 +46,13 @@ shared: $(TOPDIR)lib/$(LIBNAME)
@(cd tmp; CC=$(CC) /bin/sh ../../extra/scripts/get-needed-libgcc-objects.sh)
if [ -s ./tmp/libgcc-need.a ] ; then \
$(CC) -g $(LDFLAGS) -shared -o $(SHARED_FULLNAME) \
- -Wl,-soname,$(SHARED_MAJORNAME) -Wl,--whole-archive \
+ -Wl,-soname=$(SHARED_MAJORNAME) -Wl,--whole-archive \
./$(LIBNAME) ./tmp/libgcc-need.a \
- $(LDSO) ; \
+ $(LDSO) -Wl,--dynamic-linker,$(DYNAMIC_LINKER); \
else \
$(CC) -g $(LDFLAGS) -shared -o $(SHARED_FULLNAME) \
-Wl,-soname,$(SHARED_MAJORNAME) -Wl,--whole-archive \
- ./$(LIBNAME) $(LDSO) ; \
+ ./$(LIBNAME) $(LDSO) -Wl,-dynamic-linker=$(DYNAMIC_LINKER); \
fi
@rm -rf tmp
install -d $(TOPDIR)lib