Neopallium/lua-zmq — Issue #20: Failed to install FFI-based bindings
Author: dvv
Created: 2011-12-04 07:48:27+00:00
State: open

Hi!

In luvit/zmq I'm trying to build lua-zmq for luvit. In order to get rid of `cmake` and `libzmq-dev` (think of rootless access, e.g.) I'm trying to build libzmq.so locally.

In order to specify custom location of `libzmq.so` built locally, I use `-rpath` option for `ld`: https://github.com/luvit/zmq/blob/master/Makefile#L14

That works, and resulting zmq.so is built ok. I can successfully `require()` it from luvit. But the subj is printed.

`strace` logs show that `-rpath` is not honored when loading modules in FFI-based manner.

What can be a workaround? Am I making wrong assumptions, or doing build wrong?

TIA,
--Vladimir