title: Static linking of Glibc
body: <p>How can i compile my app linking statically glibc library, but only the code needed for my app? (Not all lib)</p>
  
  <p>Now my compile command:</p>
  
  <pre><code>g++  -o newserver  test.cpp ... -lboost_system -lboost_thread -std=c++0x
  </code></pre>
  
  <p>Thanks!</p>