300-soversion-compatibility.patch 866 B

1234567891011121314151617181920212223242526
  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. --- a/library/CMakeLists.txt
  5. +++ b/library/CMakeLists.txt
  6. @@ -147,7 +147,7 @@ endif(USE_STATIC_MBEDTLS_LIBRARY)
  7. if(USE_SHARED_MBEDTLS_LIBRARY)
  8. add_library(mbedcrypto SHARED ${src_crypto})
  9. - set_target_properties(mbedcrypto PROPERTIES VERSION 2.7.10 SOVERSION 2)
  10. + set_target_properties(mbedcrypto PROPERTIES VERSION 2.7.10 SOVERSION 0)
  11. target_link_libraries(mbedcrypto ${libs})
  12. add_library(mbedx509 SHARED ${src_x509})
  13. --- a/library/Makefile
  14. +++ b/library/Makefile
  15. @@ -33,7 +33,7 @@ endif
  16. SOEXT_TLS=so.10
  17. SOEXT_X509=so.0
  18. -SOEXT_CRYPTO=so.2
  19. +SOEXT_CRYPTO=so.0
  20. # Set DLEXT=dylib to compile as a shared library for Mac OS X
  21. DLEXT ?= so