mbedtls: change libmbedcrypto.so soversion back to 0
[openwrt/openwrt.git] / package / libs / mbedtls / patches / 300-soversion-compatibility.patch
1 mbedtls changed in version 2.7.0 and 2.7.2 the soversion of the
2 libmbedcrypto.so library, use the old version again to be able to use
3 the new library with binaries compiled against the old library.
4
5 --- a/library/CMakeLists.txt
6 +++ b/library/CMakeLists.txt
7 @@ -141,7 +141,7 @@ endif(USE_STATIC_MBEDTLS_LIBRARY)
8
9 if(USE_SHARED_MBEDTLS_LIBRARY)
10 add_library(mbedcrypto SHARED ${src_crypto})
11 - set_target_properties(mbedcrypto PROPERTIES VERSION 2.7.2 SOVERSION 2)
12 + set_target_properties(mbedcrypto PROPERTIES VERSION 2.7.2 SOVERSION 0)
13 target_link_libraries(mbedcrypto ${libs})
14
15 add_library(mbedx509 SHARED ${src_x509})
16 --- a/library/Makefile
17 +++ b/library/Makefile
18 @@ -33,7 +33,7 @@ endif
19
20 SOEXT_TLS=so.10
21 SOEXT_X509=so.0
22 -SOEXT_CRYPTO=so.2
23 +SOEXT_CRYPTO=so.0
24
25 DLEXT=so
26 # OSX shared library extension: