mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 19:15:45 +01:00
Makefile now produces a .so.X with SOVERSION in it
This commit is contained in:
parent
5c8434cf52
commit
835481930a
@ -22,9 +22,9 @@ ifdef SHARED
|
||||
CFLAGS += -fPIC
|
||||
endif
|
||||
|
||||
SONAME=libpolarssl.so.0
|
||||
SONAME=libpolarssl.so.5
|
||||
|
||||
DLEXT=so
|
||||
DLEXT=so.5
|
||||
# OSX shared library extension:
|
||||
# DLEXT=dylib
|
||||
|
||||
@ -61,7 +61,7 @@ endif
|
||||
|
||||
static: libpolarssl.a
|
||||
|
||||
shared: libpolarssl.$(DLEXT)
|
||||
shared: libpolarssl.$(DLEXT) libpolarssl.so
|
||||
|
||||
libpolarssl.a: $(OBJS)
|
||||
echo " AR $@"
|
||||
@ -69,10 +69,14 @@ libpolarssl.a: $(OBJS)
|
||||
echo " RL $@"
|
||||
$(AR) s $@
|
||||
|
||||
libpolarssl.so: libpolarssl.a
|
||||
libpolarssl.${DLEXT}: libpolarssl.a
|
||||
echo " LD $@"
|
||||
$(CC) ${LDFLAGS} -shared -Wl,-soname,$(SONAME) -o $@ $(OBJS)
|
||||
|
||||
libpolarssl.so: libpolarssl.${DLEXT}
|
||||
echo " LN $@ -> libpolarssl.${DLEXT}"
|
||||
ln -sf libpolarssl.${DLEXT} $@
|
||||
|
||||
libpolarssl.dylib: libpolarssl.a
|
||||
echo " LD $@"
|
||||
$(CC) ${LDFLAGS} -dynamiclib -o $@ $(OBJS)
|
||||
|
Loading…
Reference in New Issue
Block a user