summaryrefslogtreecommitdiff
path: root/libm
diff options
context:
space:
mode:
Diffstat (limited to 'libm')
-rw-r--r--libm/Makefile.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/libm/Makefile.in b/libm/Makefile.in
index 4a021fccf..7b6a781cf 100644
--- a/libm/Makefile.in
+++ b/libm/Makefile.in
@@ -128,7 +128,7 @@ lib-a-$(UCLIBC_HAS_FLOATS) += $(top_builddir)lib/libm.a
lib-so-$(UCLIBC_HAS_FLOATS) += $(top_builddir)lib/libm.so
objclean-y += libm_clean
-$(top_builddir)lib/libm.so: $(libm_OUT)/libm_so.a libc-y
+$(top_builddir)lib/libm.so: $(libm_OUT)/libm_so.a $(libc-so-dep)
$(call link.so,$(libm_FULL_NAME),$(MAJOR_VERSION))
$(libm_OUT)/libm_so.a: $(libm-so-y)
@@ -139,11 +139,13 @@ $(libm_OUT)/libm_so.a: $(libm-so-y)
ifeq ($(DOPIC),y)
$(top_builddir)lib/libm.a: $(libm-a-y:.o=.os)
else
-$(top_builddir)lib/libm.a: $(libm-a-y)
+$(top_builddir)lib/libm.a: $(libm-a-y) $(libm_OUT)/libm_so.a
endif
$(Q)$(INSTALL) -d $(dir $@)
$(Q)$(RM) $@
+ifneq ($(DOPIC),y)
$(do_strip)
+endif
$(do_ar)
$(libm_MOBJ): $(libm_MSRC)