Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
nutinshell opened this issue Nov 18, 2012 · 2 comments
Closed

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

nutinshell opened this issue Nov 18, 2012 · 2 comments

Comments

@nutinshell
Copy link

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

@tatsuhiro-t
Copy link
Owner

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
Copy link
Author

Got it. I missed -lssl -lcrypto :|

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants