title: what is the difference between LD_LIBRARY_PATH and -rpath
body: <p>When linking libraries, -rpath is used to pass the address of dynamic libraries to ld. My question is if I set the address in LD_LIBRARY_PATH, do I still need -rpath flag in my linking 
  process?</p>