about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--libraries.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/libraries.mk b/libraries.mk
index 2da6c9b6a6c7..4b8292cc20d2 100644
--- a/libraries.mk
+++ b/libraries.mk
@@ -66,6 +66,10 @@ define build-library
       endif
     endif
 
+    ifneq ($(OS), Darwin)
+      $(1)_LDFLAGS += -Wl,-soname=$$($(1)_NAME).$(SO_EXT)
+    endif
+
     $(1)_PATH := $$(_d)/$$($(1)_NAME).$(SO_EXT)
 
     $$($(1)_PATH): $$($(1)_OBJS) $$(_libs) | $$(_d)/