summaryrefslogtreecommitdiff
path: root/libm
diff options
context:
space:
mode:
Diffstat (limited to 'libm')
-rw-r--r--libm/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/libm/Makefile b/libm/Makefile
index fc1322c35..e0faf0700 100644
--- a/libm/Makefile
+++ b/libm/Makefile
@@ -95,7 +95,7 @@ shared: all
set -x -e; \
$(LD) $(LDFLAGS) -o $(LIBM_SHARED_FULLNAME) \
-soname=$(LIBM_SHARED).$(MAJOR_VERSION) \
- --whole-archive $(LIBM); \
+ --whole-archive $(LIBM) -L$(TOPDIR)/lib -lc; \
install -d $(TOPDIR)lib; \
rm -f $(TOPDIR)lib/$(LIBM_SHARED_FULLNAME) $(TOPDIR)lib/$(LIBM_SHARED).$(MAJOR_VERSION); \
install -m 644 $(LIBM_SHARED_FULLNAME) $(TOPDIR)lib; \