From mboxrd@z Thu Jan 1 00:00:00 1970 From: john at keeping.me.uk (John Keeping) Date: Sun, 16 Oct 2016 12:55:47 +0100 Subject: Linking cgit with Lua using -Wl,-E In-Reply-To: <7dcc34c2-6494-137b-79cb-0a3eb664e49a@aegee.org> References: <7dcc34c2-6494-137b-79cb-0a3eb664e49a@aegee.org> Message-ID: <20161016115547.GG22407@john.keeping.me.uk> 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)crypto.so 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.