<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 2, 2019 at 4:16 PM Nicolas Holzschuch <<a href="mailto:Nicolas.Holzschuch@inria.fr">Nicolas.Holzschuch@inria.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi, <br>
<br>
> On 29 Aug 2019, at 23:40, Henri Menke <<a href="mailto:henrimenke@gmail.com" target="_blank">henrimenke@gmail.com</a>> wrote:<br>
> <br>
> <br>
> Dear list, (especially Hans and Luigi)<br>
> <br>
> Would it be possible to have the build system generate static libraries<br>
> of the executables as well?  That is to say, instead of generating<br>
> luatex.exe, generate luatex.a which can then be turned into an<br>
> executable in one linking step.<br>
> <br>
> The rationale is that I want to link additional static and/or dynamic<br>
> libraries into LuaTeX but I don't want to go through the whole trouble<br>
> of adding these libraries to the build system.  If there was a single<br>
> static library `lua(jit)tex.a' which I could be used like<br>
> <br>
>    gcc -o myluatex luatex.a<br>
<br>
I did something similar: generate a dynamic library with minimal modifications to the code: <a href="https://github.com/holzschu/lib-tex" rel="noreferrer" target="_blank">https://github.com/holzschu/lib-tex</a><br>
<br></blockquote><div><br></div><div>sure, this is the standard way to generate the dll windows exe.</div><div>Under linux , <br></div><div>--enable-shared --disable-native-texlive-build --disable-static<br></div><div>should work without modifications</div><div>(perhaps the linker flag  -Wl,-rpath,'$ORIGIN/.'  can be used to locate the</div><div>libtexlua53.so.5  libkpathsea.so.6  in the same folder of the luatex dso) .</div><div><br></div><div> </div></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">luigi<br></div></div>