lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Mon, Mar 30, 2020 at 12:40 PM Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:

>That may be true in Windows.

That is certainly true in Windows.

> In Linux you need to link your application with -Wl,-E

The good thing is that in the ELF case one does not have to fiddle with the dynamic loader. The bad, one may need to fiddle with the compiler and the linker, because just using -E will export every symbol not declared as static, including those from third-party statically linked libraries, even those not used by the application. For C++ applications, this can inflate the resultant executable quite dramatically.

Cheers,
V.