Welcome! Log In Create A New Profile

Advanced

Re: Help to build nginx withe specific OpenSSL shared library

A. Schulze
July 12, 2017 04:40AM
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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Help to build nginx withe specific OpenSSL shared library

occ July 12, 2017 03:20AM

Re: Help to build nginx withe specific OpenSSL shared library

A. Schulze July 12, 2017 04:40AM

Re: Help to build nginx withe specific OpenSSL shared library

occ July 12, 2017 08:02AM

Re: Help to build nginx withe specific OpenSSL shared library

A. Schulze July 12, 2017 09:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 276
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready