Fix error when loading libmbedtls.so

This commit is contained in:
Manuel Pégourié-Gonnard 2015-08-10 10:17:32 +02:00
parent 8356fc212d
commit ed46c436c0
2 changed files with 5 additions and 4 deletions

View File

@ -23,6 +23,7 @@ Bugfix
* Fix missing -static-libgcc when building shared libraries for Windows * Fix missing -static-libgcc when building shared libraries for Windows
with make. with make.
* Fix link error when building shared libraries for Windows with make. * Fix link error when building shared libraries for Windows with make.
* Fix error when loading libmbedtls.so.
Changes Changes
* The PEM parser now accepts a trailing space at end of lines (#226). * The PEM parser now accepts a trailing space at end of lines (#226).

View File

@ -93,9 +93,9 @@ libmbedtls.a: $(OBJS_TLS)
echo " RL $@" echo " RL $@"
$(AR) s $@ $(AR) s $@
libmbedtls.$(SOEXT_TLS): $(OBJS_TLS) libmbedtls.$(SOEXT_TLS): $(OBJS_TLS) libmbedx509.so
echo " LD $@" echo " LD $@"
$(CC) -shared -Wl,-soname,$@ $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ $(OBJS_TLS) $(CC) -shared -Wl,-soname,$@ -L. -lmbedcrypto -lmbedx509 $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ $(OBJS_TLS)
libmbedtls.so: libmbedtls.$(SOEXT_TLS) libmbedtls.so: libmbedtls.$(SOEXT_TLS)
echo " LN $@ -> $<" echo " LN $@ -> $<"
@ -116,9 +116,9 @@ libmbedx509.a: $(OBJS_X509)
echo " RL $@" echo " RL $@"
$(AR) s $@ $(AR) s $@
libmbedx509.$(SOEXT_X509): $(OBJS_X509) libmbedx509.$(SOEXT_X509): $(OBJS_X509) libmbedcrypto.so
echo " LD $@" echo " LD $@"
$(CC) -shared -Wl,-soname,$@ $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ $(OBJS_X509) $(CC) -shared -Wl,-soname,$@ -L. -lmbedcrypto $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ $(OBJS_X509)
libmbedx509.so: libmbedx509.$(SOEXT_X509) libmbedx509.so: libmbedx509.$(SOEXT_X509)
echo " LN $@ -> $<" echo " LN $@ -> $<"