Open janbraun opened 4 years ago
When linking the example with g++ -std=c++11 libssp_test.cpp -pthread -lssp
g++ -std=c++11 libssp_test.cpp -pthread -lssp
ldd a.out will show a dependency on liblibssp: liblibssp.so => not found
ldd a.out
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
$ patchelf --print-soname libssp.so
liblibssp.so
Using $ patchelf --set-soname libssp.so libssp.so fixes the issue.
$ patchelf --set-soname libssp.so libssp.so
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
printsliblibssp.so
Using
$ patchelf --set-soname libssp.so libssp.so
fixes the issue.