I produce a dynamic library (libfoo.so
) requires libcrypto.so
.
Which works fine in the build platform (I build it in Ubuntu 16.04). However when I move the same library to Debian Stretch 9.3, it start to complaining missing libcrypto.so.1.0.0
. The openssl package is install in Debian Stretch, but the libcrypto.so
is named as libcrypto.so.1.0.2
.
After a bit of digging, I found out that although the
libcrypto.so
on Ubuntu 16.04 is named as libcrypto.so.1.0.0
(its SONAME
also libcrypto.so.1.0.0
), it is actually version 1.0.2.
Here is the question: I do not want to recompiled a special version for Debian, is there anyway that my library can be use on both Linux distributions? Either link with both .so version at the same time, or other methods?
Forgot to mention that, I used gcc compiler, my library is written in C.