title: How to change the lib version of an already compiled binary
body: <p>these doubts started coming to me when I read shared library.. </p>
  
  <p>1.-------------------------------------------
  Suppose I already compiled like below,</p>
  
  <pre><code>test  : main.o libtest.so.2
    gcc main.o -L ../../lib -ltest -o test
  libtest.so.2  : version2.c
    gcc -Wall -fPIC -c version2.c
    gcc -shared -Wl,-soname,libtest.so -o libtest.so.2.0 version2.o
    ln -sf libtest.so.2.0 libtest.so
    mv libtest.s* ../../lib
  main.o  : main.c
    gcc -c main.c
  </code></pre>
  
  <p>having given -ltest, the library should always be a soft link to libtest.so. Correct ?
  So what if I go for a higher version of libtest for another binary and the former needs the old version of it ? How do I handle this.</p>
  
  <p>2.-------------------------------------------------------------------------
  I have a few libs and I do not wish to include them in LD_LIBRRAY_PATH since everyone will have to search this folder which will be totally relevant to them.</p>