From 33aac37d53b86415ba5c00e111345420573a5b2d Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Sat, 13 Aug 2011 11:47:41 +0000
Subject: [PATCH] - Added correct SONAME to Makefile builds as well
---
library/Makefile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/library/Makefile b/library/Makefile
index dbab9626d..1ecd2ffa1 100644
--- a/library/Makefile
+++ b/library/Makefile
@@ -13,6 +13,8 @@ OFLAGS = -O
# To compile as a shared library:
# CFLAGS += -fPIC
+SONAME=libpolarssl.so.0
+
DLEXT=so
# OSX shared library extension:
# DLEXT=dylib
@@ -50,7 +52,7 @@ libpolarssl.a: $(OBJS)
libpolarssl.so: libpolarssl.a
echo " LD $@"
- $(CC) ${LDFLAGS} -shared -Wl,-soname,$@ -o $@ $(OBJS)
+ $(CC) ${LDFLAGS} -shared -Wl,-soname,$(SONAME) -o $@ $(OBJS)
libpolarssl.dylib: libpolarssl.a
echo " LD $@"