mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-08 17:42:09 +03:00
Replace SONAME with SOVERSION in makefile
- avoids duplication - fixes warning about redefined rule with WINDOWS=1
This commit is contained in:
@@ -22,9 +22,9 @@ ifdef SHARED
|
||||
CFLAGS += -fPIC
|
||||
endif
|
||||
|
||||
SONAME=libmbedtls.so.7
|
||||
SOVERSION=8
|
||||
|
||||
DLEXT=so.8
|
||||
DLEXT=so.$(SOVERSION)
|
||||
# OSX shared library extension:
|
||||
# DLEXT=dylib
|
||||
|
||||
@@ -89,14 +89,14 @@ libpolarssl.so: libmbedtls.so
|
||||
echo " LN $@ -> $?"
|
||||
ln -sf $? $@
|
||||
|
||||
libmbedtls.${DLEXT}: $(OBJS)
|
||||
echo " LD $@"
|
||||
$(CC) ${LDFLAGS} -shared -Wl,-soname,$(SONAME) -o $@ $(OBJS)
|
||||
|
||||
libmbedtls.so: libmbedtls.${DLEXT}
|
||||
echo " LN $@ -> libmbedtls.${DLEXT}"
|
||||
ln -sf libmbedtls.${DLEXT} $@
|
||||
|
||||
libmbedtls.so.$(SOVERSION): $(OBJS)
|
||||
echo " LD $@"
|
||||
$(CC) ${LDFLAGS} -shared -Wl,-soname,$@ -o $@ $(OBJS)
|
||||
|
||||
libmbedtls.dylib: $(OBJS)
|
||||
echo " LD $@"
|
||||
$(CC) ${LDFLAGS} -dynamiclib -o $@ $(OBJS)
|
||||
|
Reference in New Issue
Block a user