title: C library build for LuaJit
body: <p>Please, help me to understand the build process for luajit.</p>
  
  <p>If I want to compile a c library I use this code:</p>
  
  <pre><code>gcc -shared -fpic -O -I/path-to-luajit-headers/luajit-2.1  mylib.c -o mylib.so
  </code></pre>
  
  <p>Is it needed to use more specific parameters like this:</p>
  
  <pre><code>gcc -shared -fpic -O -I/path-to-luajit-headers/luajit-2.1 -L/path-to-luajit/lib mylib.c -o mylib.so -lluajit-2.1
  </code></pre>
  
  <p>In the second case the .so file is twice larger than the first one. What is the difference? Is it important to use <code>-lluajit-2.1</code> , etc. May be there are more parameters to define luajit mode instead of pure lua building mode?</p>