title: How to use static library in linux executable
body: <p>I have a project which I compile on Linux. When I run the <code>ldd</code> command against the executable, here's what I get:</p>
  
  <pre><code>libevent_core-2.1.so.6 =&gt; /usr/lib/x86_64-linux-gnu/libevent_core-2.1.so.6 (0x00007fca87a5e000)
  libevent_pthreads-2.1.so.6 =&gt; /usr/lib/x86_64-linux-gnu/libevent_pthreads-2.1.so.6 (0x00007fca8785b000)
  </code></pre>
  
  <p>Now, I want to make these libraries compile as static libraries. How can I do that?</p>
  
  <p>Here's my make file library:</p>
  
  <pre><code>LIBS    = -levent_core -levent_extra -levent -levent_pthreads -lsystemd
  </code></pre>