If I invoke the following command:
ldd mylib.so
this then yields something along the lines of:
libopencv_features2d.so.4.1 => /usr/local/lib/libopencv_features2d.so.4.1 (0x00007f83dee6b000)
If I copy /usr/local/lib/libopencv_features2d.so.4.1
into my current working directory, I would then expect ldd to show => ./libopencv_features2d.so.4.1 (0x00007f83dee6b000)
Instead, it still resolves it to /usr/local/lib
. Why is that? And how do system dependencies like this get resolved? Is there also a way to influence the way dependencies are resolved? Can I force it to resolve it to my local directory?