title: compile lua shared object into embeded c
body: <p>i have this code (<code>zstring.c</code>)</p>
  
  <pre><code>#include "lua.h"
  #include "lualib.h"
  #include "lauxlib.h"
  #include &lt;string.h&gt;
  
  static int zst_strlen(lua_State *L)
  {
      size_t len;
      len = strlen(lua_tostring(L, 1));
      lua_pushnumber(L, len);
      return 1;
  }
  
  int luaopen_zstring(lua_State *L) 
  {
      lua_register(L,"zst_strlen", zst_strlen);
      return 0;
  }
  </code></pre>
  
  <p>and this is my <code>lua</code> embedded</p>
  
  <pre><code>int main (){
      L = luaL_newstate();
      luaL_openlibs(L);
      luaL_dofile(L, "test.lua");
      lua_close(L);
      return 0;
  }
  </code></pre>
  
  <p>i do not want compile <code>zstring.c</code> to <code>zstring.so</code> object</p>
  
  <p>i want <code>zstring.c</code> compile into my embedded <code>lua</code> then i can call <code>zstring</code> from <code>test.lua</code> and use it</p>
  
  <p>how to do it?</p>