|
On Mon, Nov 25, 2013 at 12:29 PM, Shital Patil <shital.patil@gslab.com> wrote:Which means, use -fPIC when compiling LuaXML_lib.c as well. It's a
> 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
classic gotcha that breaks 64bit Linux builds.
Attachment:
Makefile
Description: Binary data