summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
Diffstat (limited to 'libc')
-rw-r--r--libc/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/Makefile b/libc/Makefile
index c9c9ac315..c72d894ca 100644
--- a/libc/Makefile
+++ b/libc/Makefile
@@ -84,7 +84,7 @@ $(AR_LIB_NAME): shared_$(LIB_NAME).a
cp shared_$(LIB_NAME).a $(AR_LIB_NAME)
$(AR) $(ARFLAGS) $(AR_LIB_NAME) misc/internals/static.o `cat nonshared_obj.*`
-$(SO_LIB_NAME): shared_$(LIB_NAME).a
+$(SO_LIB_NAME): $(AR_LIB_NAME)
$(RM) $(TOPDIR)lib/$(SO_FULL_NAME) $(TOPDIR)lib/$(SHARED_MAJORNAME) $(SO_LIB_NAME)
$(LD) $(LDFLAGS) $(VERSION_SCRIPT) -soname=$(SHARED_MAJORNAME) \
-o $(TOPDIR)lib/$(SO_FULL_NAME) --whole-archive shared_$(LIB_NAME).a \