[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Error while building LuaXml
- From: steve donovan <steve.j.donovan@...>
- Date: Mon, 25 Nov 2013 12:35:35 +0200
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.