imaginevision / libssp

MIT License
21 stars 10 forks source link

When linking with libssp, the program requires liblibssp #8

Open janbraun opened 4 years ago

janbraun commented 4 years ago

When linking the example with g++ -std=c++11 libssp_test.cpp -pthread -lssp

ldd a.out will show a dependency on liblibssp: liblibssp.so => not found

The reason is that the soname is incorrectly set. Probably one lib to much while linking. $ patchelf --print-soname libssp.so prints liblibssp.so

Using $ patchelf --set-soname libssp.so libssp.so fixes the issue.