Skip to content

Instantly share code, notes, and snippets.

@felixhummel
Created July 4, 2014 10:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felixhummel/384ad87acdd550194e62 to your computer and use it in GitHub Desktop.
Save felixhummel/384ad87acdd550194e62 to your computer and use it in GitHub Desktop.
diff --git a/auto/lib/openssl/conf b/auto/lib/openssl/conf
index a65815f..6a772ed 100644
--- a/auto/lib/openssl/conf
+++ b/auto/lib/openssl/conf
@@ -28,10 +28,10 @@ if [ $OPENSSL != NONE ]; then
have=NGX_OPENSSL . auto/have
have=NGX_SSL . auto/have
- CORE_INCS="$CORE_INCS $OPENSSL/.openssl/include"
- CORE_DEPS="$CORE_DEPS $OPENSSL/.openssl/include/openssl/ssl.h"
- CORE_LIBS="$CORE_LIBS $OPENSSL/.openssl/lib/libssl.a"
- CORE_LIBS="$CORE_LIBS $OPENSSL/.openssl/lib/libcrypto.a"
+ CORE_INCS="$CORE_INCS $OPENSSL/include"
+ CORE_DEPS="$CORE_DEPS $OPENSSL/include/openssl/ssl.h"
+ CORE_LIBS="$CORE_LIBS $OPENSSL/libssl.a"
+ CORE_LIBS="$CORE_LIBS $OPENSSL/libcrypto.a"
CORE_LIBS="$CORE_LIBS $NGX_LIBDL"
if [ "$NGX_PLATFORM" = win32 ]; then
@felixhummel
Copy link
Author

Usage:

curl https://gist.githubusercontent.com/felixhummel/384ad87acdd550194e62/raw/e6a6efcda9a0627b7f0470c1a697b040f73a8e4d/nginx_openssl_source.diff | patch -p1
./configure --prefix=_foo --with-pcre=../pcre-8.35 --with-openssl=../openssl-1.0.1h --with-cc-opt=-I../openssl-1.0.1h/include --with-ld-opt='-L../openssl-1.0.1h -Wl,-Bstatic -lssl -lcrypto -Wl,-Bdynamic -ldl' | tee z && make | tee -a z

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment