title: Library search path for libstdc++
body: <p>I have compiled shared libraries dynamically linked against libstdc++.so using GLIBCXX_3.4.11. I want to send my code to someone whose stdc++ library is only of version 3.4.10. Rather than ask him to update his library version (this is a software customer, so I can't assume they'll be willing or able to change system files) I would like to ship the appropriate version of libstdc++.so, placed in a lib folder with the directory location of my code. How do I get my own code to use the appropriate (later) version? I find that /etc/ld.so.conf includes the directory /lib64, where an offending older version of libstdc++.so resides. Setting LD_LIBRARY_PATH does not override this. This seems to deviate from the <a href="http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html" rel="nofollow">advertised</a> behavior. Any idea why this is happening? How do I complete my rather simple task?</p>
  
  <p>Thanks.</p>