I am creating a dynamic library ( libfoo.so) that requires libcrypto.so. Which works great on the build platform (I create it in Ubuntu 16.04). However, when I transfer the same library to Debian Stretch 9.3, it starts complaining about the absence libcrypto.so.1.0.0. The openssl package is installed on Debian Stretch, but it libcrypto.sois called libcrypto.so.1.0.2. After a little digging, I found out that although
libcrypto.soUbuntu 16.04 calls libcrypto.so.1.0.0(its SONAMEalso libcrypto.so.1.0.0), this is actually version 1.0.2.
Here's the question: I donβt want to recompile a special version for Debian, anyway, that my library can be used in both Linux distributions? Any link at the same time with the .so version or other methods?
I forgot to mention that I used the gcc compiler, my library is written in C.
source
share