Re: Creating a statically linked executable for a LuaJIT+C program

  • From: John Spencer <maillist-luajit@xxxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Sun, 28 Oct 2012 14:39:29 +0100

On 10/28/2012 01:15 PM, Florian Weimer wrote:
* Luke Gorrie:

Is there a simple example of a very statically linked executable
including LuaJIT that I can borrow from?

Statically linking against GNU libc does not work well because there
is system functionality which absolutely requires dynamic linking
(name resolution, user/group database, and so on).

thus *musl* libc, as i said earlier.

thanks for your in-depth analysis why glibc is unsuitable for static linking (apart from license issues and massive bloat) though.


Other related posts: