[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Segfault with luasql.postgres on OS X
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 18 Mar 2016 12:55:08 -0300
> > * gcc -Wall -shared -fPIC -o time_now.so -llua time_now.c
> >
>
> I've lost track. What's the "official" way to build Lua plugins on OS X?
My thoughts exactly.
I've used
gcc -Wall -bundle -undefined dynamic_lookup -o time_now.so time_now.c
and it works fine.
I guess that -llua may be getting a different version of the Lua library.
In any case, you're not supposed to link the Lua library with the .so.
(I know that -llua might just tell the .so that there is a Lua library,
but I never used -llua for .so.)