tatsuhiro-t / spdylay

The experimental SPDY protocol version 2, 3 and 3.1 implementation in C
http://tatsuhiro-t.github.io/spdylay/
MIT License
602 stars 103 forks source link

How to specify openssl and libevent-openssl in other dir? #43

Closed nutinshell closed 12 years ago

nutinshell commented 12 years ago

I got libevent-openssl and openssl 1.0.1 in other dirs, how to do configure, it always failed to build.

tatsuhiro-t commented 12 years ago

You can specify the location of the library with the following variables:

OPENSSL_CFLAGS
          C compiler flags for OPENSSL, overriding pkg-config
OPENSSL_LIBS
          linker flags for OPENSSL, overriding pkg-config
LIBEVENT_OPENSSL_CFLAGS
          C compiler flags for LIBEVENT_OPENSSL, overriding pkg-config
LIBEVENT_OPENSSL_LIBS
          linker flags for LIBEVENT_OPENSSL, overriding pkg-config

For example, if your openssl libs exist in /opt, then you can specify like this:

./configure OPENSSL_CFLAGS=-I/opt/include OPENSSL_LIBS="-L/opt/lib -lssl -lcrypto"
nutinshell commented 12 years ago

Got it. I missed -lssl -lcrypto :|