title: static linking only some libraries
body: <p>How can I statically link only a some specific libraries to my binary when linking with GCC?</p>
  
  <p><code>gcc ... -static ...</code> tries to statically link <strong>all</strong> the linked libraries, but I haven't got the static version of some of them (eg: libX11).</p>