[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: please drop whatever you're doing and add -fPIC to all your rockspecs.
- From: Sean Conner <sean@...>
- Date: Tue, 2 Mar 2010 04:29:27 -0500
It was thus said that the Great steve donovan once stated:
> On Tue, Mar 2, 2010 at 3:50 AM, Pan Shi Zhu <email@example.com> wrote:
> > ... For Unix, we recommend that the Lua library be linked statically
> > into the host program...
> >From my experience it was better to link against the .so, because the
> static link only satisfied the Lua calls I had explicitly made. Tried
> to run some scripts and load some extensions, and couldn't find some
> symbols. So there must be a caveat attached to this recommendation
> (unless there is some link subtlety I missed)
There is. When compiling your app with GCC, and compiling statically
against Lua, you need to use the "-rdynamic" option to the compiler to
export the Lua API to the extenstions.
-spc (It should work after that ... )