lua-users home
lua-l archive

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


Thank you. On -fPIC, is it a similar reason? While building a shared library is not directly a goal, the ability to link to a shared library is necessary.

On Mon, Dec 9, 2019 at 06:34 Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
> I maintain a fork of lua to patch the makefile to include -fPIC, so I could link liblua.a to a shared library. I was wondering if there was a reason this wasn’t default, along with why only the executable(s) and the static lua was built by default? It seems like a limitation, as it prevents using lua in shared libraries, only in static libraries, or top level executables.

See http://lua-users.org/lists/lua-l/2014-05/msg00381.html