<div dir="ltr">Hi.<div>Thanks for your suggestion.<br><div>But I just found an easier way (using the "configure") to build nginx with OpenSSL shared library not using the system OpenSSL library but using the shared library in a specific path (OpenSSL already built in "/opt/ssldevel" in my case).</div><div>I set the "--with-ld-opt=" in this way:</div><div><br></div><div>--with-ld-opt="-L /opt/ssldevel/lib -ldl -Wl,-rpath,/opt/ssldevel/lib"Â </div><div class="gmail_extra"><br></div><div class="gmail_extra">So the configure will be:</div><div class="gmail_extra"><br><div class="gmail_quote"><div>configure --with-cc-opt="-I /opt/ssldevel/include" --with-ld-opt="-L /opt/ssldevel/lib -ldl -Wl,-rpath,/opt/ssldevel/lib" --with-http_ssl_module --with-openssl-opt=enable-tls1_3<br></div><div><br></div><div>In this way nginx will use the shared OpenSSL library to the specific path "/opt/ssldevel", see here:</div><div><br></div><div><div>root@server:~# ldd /usr/local/nginx/sbin/nginx</div><div>Â Â Â Â linux-vdso.so.1 => Â (0x7ef4f000)</div><div>Â Â Â Â /usr/lib/arm-linux-gnueabihf/libcofi_rpi.so (0x76fd8000)</div><div>Â Â Â Â libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0x76fbb000)</div><div>Â Â Â Â libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0x76f9c000)</div><div>Â Â Â Â libcrypt.so.1 => /lib/arm-linux-gnueabihf/libcrypt.so.1 (0x76f65000)</div><div>Â Â Â Â libssl.so.1.1 => /opt/ssldevel/lib/libssl.so.1.1 (0x76efe000)</div><div>Â Â Â Â libcrypto.so.1.1 => /opt/ssldevel/lib/libcrypto.so.1.1 (0x76d17000)</div><div>Â Â Â Â libz.so.1 => /usr/local/lib/libz.so.1 (0x76cf6000)</div><div>Â Â Â Â libperl.so.5.14 => /usr/lib/libperl.so.5.14 (0x76ba5000)</div><div>Â Â Â Â libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0x76b34000)</div><div>Â Â Â Â libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x76a00000)</div><div>Â Â Â Â /lib/ld-linux-armhf.so.3 (0x54aee000)</div><div>Â Â Â Â libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0x769d8000)</div></div><div><br></div><div><br></div><div>I hope that it's OK also in your point of view (without introducing other issues).</div><div>Thanks.</div><div><br></div><div><br></div><div>Fabio</div><div><br></div><div><br></div><div>Â </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
</blockquote>
<br>
I use to patch the file "auto/lib/openssl/conf"<br>
I picked up a section/platform I never will build for and modifiy<br>
"ngx_feature", "ngx_feature_path" and "ngx_feature_libs"<br>
<br>
<br>
<br>
Description: find my openssl libraries with nodefault names<br>
Author: A. Schulze<br>
---<br>
This patch header follows DEP-3: <a href="http://dep.debian.net/deps/dep3/" rel="noreferrer" target="_blank">http://dep.debian.net/deps/dep<wbr>3/</a><br>
Index: nginx-1.13.3/auto/lib/openssl/<wbr>conf<br>
==============================<wbr>==============================<wbr>=======<br>
--- nginx-1.13.3.orig/auto/lib/ope<wbr>nssl/conf<br>
+++ nginx-1.13.3/auto/lib/openssl/<wbr>conf<br>
@@ -97,15 +97,15 @@ else<br>
<br>
     if [ $ngx_found = no ]; then<br>
<br>
-Â Â Â Â Â Â # MacPorts<br>
+Â Â Â Â Â Â # my-openssl<br>
<br>
-Â Â Â Â Â Â ngx_feature="OpenSSL library in /opt/local/"<br>
-Â Â Â Â Â Â ngx_feature_path="/opt/local/i<wbr>nclude"<br>
+Â Â Â Â Â Â ngx_feature="my-openssl library in /usr/lib/"<br>
+Â Â Â Â Â Â ngx_feature_path="/usr/include<wbr>"<br>
<br>
       if [ $NGX_RPATH = YES ]; then<br>
-Â Â Â Â Â Â Â Â ngx_feature_libs="-R/opt/local<wbr>/lib -L/opt/local/lib -lssl -lcrypto $NGX_LIBDL"<br>
+Â Â Â Â Â Â Â Â ngx_feature_libs="-R/usr/lib -L/usr/lib -lssl-my -lcrypto-my $NGX_LIBDL"<br>
       else<br>
-Â Â Â Â Â Â Â Â ngx_feature_libs="-L/opt/local<wbr>/lib -lssl -lcrypto $NGX_LIBDL"<br>
+Â Â Â Â Â Â Â Â ngx_feature_libs="-L/usr/lib -lssl-my -lcrypto-my $NGX_LIBDL"<br>
       fi<br>
<br>
       . auto/feature<br>
<br>
<br>
Andreas<br>
<br>
______________________________<wbr>_________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailm<wbr>an/listinfo/nginx</a><br>
</blockquote></div></div></div></div>