lua-users home
lua-l archive

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


On Mon, Nov 7, 2011 at 3:07 AM, Thijs Koerselman
<thijskoerselman@gmail.com> wrote:
> I tried compiling manually and I don't see anything weird but it keeps
> linking to the same libraries. I added -lpthread but that didn't make a
> difference.
> ...
> cc -shared -lpthread lanes.o threading.o tools.o keeper.o  -o lua51-lanes.so

try moving -lpthread to the end of the command line
    cc -shared lanes.o threading.o tools.o keeper.o -lpthread -o lua51-lanes.so

(re: https://wiki.ubuntu.com/OneiricOcelot/ReleaseNotes#GCC_4.6_Toolchain)