Help to build nginx withe specific OpenSSL shared library
A. Schulze
sca at andreasschulze.de
Wed Jul 12 08:39:49 UTC 2017
Fabio Ancona:
> I want to build nginx with OpenSSL shared library not using the system
> OpenSSL library (so that available at "/opt/ssl/lib") but using the shared
> library in "/opt/ssldevel/lib".
I use to patch the file "auto/lib/openssl/conf"
I picked up a section/platform I never will build for and modifiy
"ngx_feature", "ngx_feature_path" and "ngx_feature_libs"
Description: find my openssl libraries with nodefault names
Author: A. Schulze
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: nginx-1.13.3/auto/lib/openssl/conf
===================================================================
--- nginx-1.13.3.orig/auto/lib/openssl/conf
+++ nginx-1.13.3/auto/lib/openssl/conf
@@ -97,15 +97,15 @@ else
if [ $ngx_found = no ]; then
- # MacPorts
+ # my-openssl
- ngx_feature="OpenSSL library in /opt/local/"
- ngx_feature_path="/opt/local/include"
+ ngx_feature="my-openssl library in /usr/lib/"
+ ngx_feature_path="/usr/include"
if [ $NGX_RPATH = YES ]; then
- ngx_feature_libs="-R/opt/local/lib -L/opt/local/lib
-lssl -lcrypto $NGX_LIBDL"
+ ngx_feature_libs="-R/usr/lib -L/usr/lib -lssl-my
-lcrypto-my $NGX_LIBDL"
else
- ngx_feature_libs="-L/opt/local/lib -lssl -lcrypto $NGX_LIBDL"
+ ngx_feature_libs="-L/usr/lib -lssl-my -lcrypto-my $NGX_LIBDL"
fi
. auto/feature
Andreas
More information about the nginx
mailing list