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 <[email protected]> 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 <[email protected]> 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
> [email protected]
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> 
> _______________________________________________
> zeromq-dev mailing list
> [email protected]
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to