about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-03-03T14·29+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-03-03T14·29+0100
commitd6a45f6bdbf7c71eda9e4ab1ab78b373be5422b9 (patch)
tree07c9d271541a35899766f2f763956e2c61779678
parenta3767628481eefc956eb9d9d70eda62930549205 (diff)
Don't set an absolute soname
-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)/