Linking cgit with Lua using -Wl,-E

John Keeping john at
Sun Oct 16 13:55:47 CEST 2016

On Sun, Oct 16, 2016 at 07:30:08AM +0200, Дилян Палаузов wrote:
> on my system I wanted to link cgit with lua, so that lua can load the
> (lua) module.  For this to work the symbol lua_gettop has to
> be exported by cgit.  I managed this by passing "-Wl,-E" to the
> linker, when compiling cgit.

How are you linking to liblua?  I thought we normally linked that
dynamically so the symbol should be exported from the shared library
even if the cgit binary does not export symbols.

More information about the CGit mailing list