[Solved] Compiling against luajit?
pdhborges opened this issue · comments
Pedro Borges commented
I can't get the bindings to work with luajit. Tried to:
gcc -I/usr/local/include/luajit-2.0/ -o zmq.lo -c -pthread -fPIC -Wall -O2 zmq.c
gcc -shared -lzmq -lluajit-51 zmq.lo -o zmq.so
requiring zmq gives the following error:
dlopen(/usr/local/lib/lua/5.1/zmq.so, 2): Library not loaded: libluajit.so
EDIT: Additional compilation flags and prober libluajit renaming are need for Mac OS