I am building a C++ application that uses Intel\'s IPP library. This library is installed by default in /opt and requires you to set LD_LIBRARY_PATH both for compil
LD_LIBRARY_PATH
Try configuring your ldconfig through ld.so.conf so it searches your /opt/... directory by default.
ld.so.conf
/opt/...