title: How to use ldconfig to add pthread library
body: <p>Currently, while compiling a C program which uses pthread library function I have to specify compiler option -lpthread explicitly. Please suggest a way to configure ldconfig so that the pthread library could be used without specifying it on the command line.</p>
  
  <p>presently lpthread -p gives the following output :=</p>
  
  <pre><code>[root@localhost lib]# ldconfig -p | grep pthread
      libpthread.so.0 (libc6, OS ABI: Linux 2.6.9) =&gt; /lib/libpthread.so.0
      libOpenIPMIpthread.so.0 (libc6) =&gt; /usr/lib/libOpenIPMIpthread.so.0
  </code></pre>