[zeromq-dev] Compile statically libzmq and czmq

Shane Hubred shane at hubred.us
Wed Oct 16 00:03:26 CEST 2013


I didn't use the --with-libzmq flag when I built czmq. Instead I did the
following. Hope it helps.

export CFLAGS=-I/tmp/build
export LDFLAGS=-L/tmp/build
./configure --enable-static --disable-shared --prefix=/tmp/build &&
make && make instal



On Tue, Oct 15, 2013 at 4:06 PM, Kerrigan29a <kerrigan29a at hotmail.com>wrote:

> 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.
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20131015/a5700b6a/attachment.htm>


More information about the zeromq-dev mailing list