I am using pkg-config to help supply the correct libs during c++ compilation. As I understand it, it searches in directories supplied by /etc/ld.so.conf. My ld.so.conf references the following lib locations via an include directive pointing to /etc/ld.so.conf.d/*.conf:
/usr/local/lib
/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu
Problem is the library I need is under /usr/lib by default.
Can I just add in this path to /etc/ld.so.conf myself or move the library or what is the recommended practice?