In Linux, the shared libraries are usually search at /usr/lib, if you need to force it to search in a new directory then you have to create a file  with .conf extension inside

/etc/ld.so.conf.d  and add the path to that file

example :

vi /etc/ld.so.conf.d/test.conf

/usr/local/lib