aboutsummaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makerules b/Makerules
index 2191251f35..c6de338570 100644
--- a/Makerules
+++ b/Makerules
@@ -554,6 +554,7 @@ ifeq (yes,$(build-shared))
# on other shared objects.
lib%.so: lib%_pic.a
$(LINK.o) -shared -o $@ \
+ -soname lib$(libprefix)$*.so$($(@F)-version) \
$(LDFLAGS.so) $(LDFLAGS-$(notdir $*).so) \
-L$(firstword $(objdir) .) -L$(common-objpfx:%/=%) \
$(LDLIBS-$(notdir $*).so) -Wl,--whole-archive $< \