tatsuhiro-t / spdylay

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

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

Closed nutinshell closed 11 years ago

nutinshell commented 11 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 11 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 11 years ago

Got it. I missed -lssl -lcrypto :|