about summary refs log tree commit diff
path: root/Makerules
diff options
context:
space:
mode:
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makerules b/Makerules
index 619783c10d..593a81c9d7 100644
--- a/Makerules
+++ b/Makerules
@@ -492,12 +492,15 @@ $(INSTALL_PROGRAM) $< $@.new
 mv -f $@.new $@
 endef
 
-install-lib.so := libc.so $(filter %.so,$(install-lib:%_pic.a=%.so))
+install-lib.so := $(filter %.so,$(install-lib:%_pic.a=%.so))
 install-lib := $(filter-out %.so,$(install-lib))
 ifeq (yes,$(build-shared))
-install: $(foreach so,$(install-lib.so),\
+install: $(libdir)/libc.so$(libc.so-version)
+install-no-libc.a: $(foreach so,$(install-lib.so),\
   $(libdir)/$(patsubst $(libprefix)lib%,lib$(libprefix)%,\
 		       $(libprefix)$(so))$($(so)-version))
+
+install-lib.so += libc.so
 $(foreach v,$(sort $(foreach so,$(install-lib.so),.so$($(so)-version))),\
 	  $(libdir)/lib$(libprefix)%$v): $(common-objpfx)lib%.so
 	$(do-install-program)