[luatex] Generate static libraries of the executables

Nicolas Holzschuch Nicolas.Holzschuch at inria.fr
Mon Sep 2 16:15:25 CEST 2019


> On 29 Aug 2019, at 23:40, Henri Menke <henrimenke at gmail.com> wrote:
> Dear list, (especially Hans and Luigi)
> Would it be possible to have the build system generate static libraries
> of the executables as well?  That is to say, instead of generating
> luatex.exe, generate luatex.a which can then be turned into an
> executable in one linking step.
> The rationale is that I want to link additional static and/or dynamic
> libraries into LuaTeX but I don't want to go through the whole trouble
> of adding these libraries to the build system.  If there was a single
> static library `lua(jit)tex.a' which I could be used like
>    gcc -o myluatex luatex.a

I did something similar: generate a dynamic library with minimal modifications to the code: https://github.com/holzschu/lib-tex

It answers your question, partially: is it possible? yes.

Best regards,
Nicolas Holzschuch

More information about the luatex mailing list