[zeromq-dev] Compile statically libzmq and czmq

Kerrigan29a kerrigan29a at hotmail.com
Tue Oct 15 23:06:25 CEST 2013

I'm trying to compile libzmq and czmq statically on a Mac OSX Mountain Lion.

To compile libzmq (3.2.4) I've used:

    ./configure --enable-static --disable-shared --prefix=/tmp/build && make && make install

and it worked. Then I tried to compile czmq (1.4.1):

    ./configure --enable-static --disable-shared --prefix=/tmp/build --with-libzmq=/tmp/build && make && make install

but in the configuration stage I got the following error:

    checking for zmq_init in -lzmq... no
    configure: error: cannot link with -lzmq, install libzmq.

It's not possible to compile both libs statically? or I'm missing something.

Thanks for your time.

More information about the zeromq-dev mailing list