lua-users home
lua-l archive

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

Could you please suggest where do I need to do changes in this make file for LuaXml ?

On Mon, Nov 25, 2013 at 4:05 PM, steve donovan <> wrote:
On Mon, Nov 25, 2013 at 12:29 PM, Shital Patil <> wrote:
> gcc -o -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.

Attachment: Makefile
Description: Binary data