title: How do I get rid of LD_LIBRARY_PATH at run-time?
body: <p>I am building a C++ application that uses Intel's <a href="http://software.intel.com/en-us/intel-ipp/" rel="noreferrer">IPP</a> library. This library is installed by default in /opt and requires you to set <code>LD_LIBRARY_PATH</code> both for compiling and for running your software (if you choose the shared library linking, which I did). I already modified my <code>configure.ac</code>/<code>Makefile.am</code> so that I do not need to set that variable when compiling, but I still can't find the shared library at run-time; how do I do that?</p>
  
  <p>I'm compiling with the <code>-Wl, -R/path/to/libdir</code> flag using <code>g++</code></p>
  
  <p><strong>Update 1</strong>:
  Actually my binary program has some IPP libraries correctly linked, but just one is not:</p>
  
  <pre><code>$ ldd myprogram
  linux-vdso.so.1 =&gt;  (0x00007fffa93ff000)
  libippacem64t.so.6.0 =&gt; /opt/intel/ipp/6.0.2.076/em64t/sharedlib/libippacem64t.so.6.0 (0x00007f22c2fa3000)
  libippsem64t.so.6.0 =&gt; /opt/intel/ipp/6.0.2.076/em64t/sharedlib/libippsem64t.so.6.0 (0x00007f22c2d20000)
  libippcoreem64t.so.6.0 =&gt; /opt/intel/ipp/6.0.2.076/em64t/sharedlib/libippcoreem64t.so.6.0 (0x00007f22c2c14000)
  [...]
  libiomp5.so =&gt; not found
  libiomp5.so =&gt; not found
  libiomp5.so =&gt; not found
  </code></pre>
  
  <p>Of course the library is there:</p>
  
  <pre><code>$ locate libiomp5.so
  /opt/intel/ipp/6.0.2.076/em64t/sharedlib/libiomp5.so
  </code></pre>