lua-users home
lua-l archive

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


On Mon, Nov 25, 2013 at 12:29 PM, Shital Patil <shital.patil@gslab.com> wrote:
> gcc -o LuaXML_lib.so -fPIC -shared LuaXML_lib.o -L. -L../lua/src  -llua -ldl
> /usr/bin/ld: /usr/local/lib/liblua.a(lapi.o): relocation R_X86_64_32 against
> `luaO_nilobject_' can not be used when making a shared object; recompile
> with -fPIC

Which means, use -fPIC when compiling LuaXML_lib.c as well.  It's a
classic  gotcha that breaks 64bit Linux builds.