lua-users home
lua-l archive

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

When I tried to compile Lua-SDL2-2.0.3-1 on 64-bit Linux, I got:

/usr/bin/ld: /usr/bin/liblua.a(lapi.o): relocation R_X86_64_32 against `luaO_nilobject_' can not be used when making a shared object; recompile with -fPIC
/usr/bin/liblua.a: could not read symbols: Bad value

This went away after re-compiling Lua with -fPIC, but I'm not sure about the consequences. I haven't been programming in C for about 20 years, so can anybody comment on this?