Actually, I'm not sure anymore whether the missing flag is the real reason for the problem. It rather seems something went wrong when linking luabind:
> pkg-config --static --cflags --libs luabind -I/usr/include/lua5.1 -lluabind -llua5.1
> objdump -x /usr/lib/libluabind.so | grep "lua5" NEEDED liblua5.2.so.0
Why do the static and shared libraries depend on different versions of lua? This doesn't seem correct.
Actually, I'm not sure anymore whether the missing flag is the real reason for the problem. It rather seems something went wrong when linking luabind:
> pkg-config --static --cflags --libs luabind include/ lua5.1 -lluabind -llua5.1
-I/usr/
> objdump -x /usr/lib/ libluabind. so | grep "lua5"
NEEDED liblua5.2.so.0
Why do the static and shared libraries depend on different versions of lua? This doesn't seem correct.