lua-users home
lua-l archive

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


On Tue, Dec 16, 2014 at 09:21:43AM +0000, Rob Kendrick wrote:
> On Tue, Dec 16, 2014 at 09:54:34AM +0200, Aki Tuomi wrote:
> > Please modify your Makefile for lua to use -fPIC. This is required to link
> > static LUA library to any other stuff that wants to build position 
> > independent code. 
> 
> The shipped build system does not build shared libraries; the
> recommendation is always to statically link.  It's left up to packagers
> to change the build system to produce shared libraries and such if they
> wish.
> 
> I suspect the recommendation in your case will be to simply add the Lua
> sources to your own project.
> 
> B.
> 

This is required for static libaries as well, when linking them to a PIC 
binary. 

Aki