[zeromq-dev] Compile statically libzmq and czmq
Matt Connolly
matt.connolly at me.com
Wed Oct 16 00:10:13 CEST 2013
Using the --with-libzmq flag should set up flags like so (from configure.ac):
CFLAGS="-I${with_libzmq}/include ${CFLAGS}"
LDFLAGS="-L${with_libzmq}/lib ${LDFLAGS}"
I thought they should, but should the “include” and “lib” parts be there?
-Matt
On 16 Oct 2013, at 8:03 am, Shane Hubred <shane at hubred.us> wrote:
> 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
>
> _______________________________________________
> 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/20131016/e951fdde/attachment.htm>
More information about the zeromq-dev
mailing list