The list of directories to be searched is stored in the file /etc/ld.so.conf. Simply append your desired directory to this file.
Now run ldconfig -v
Note : ldconfig must be run whenever a DLL is added, when a DLL is removed, or when the set of DLL directories changes
A colon-separated set of directories where libraries should be searched for first, before the standard set of directories.
Contains a list of external libraries to link with.
For example to link with the libtrace library and the math library:
No page links to CNotes.