<div dir="ltr"><div>Hi.</div><div>I have problem to link specific OpenSSL shared library during "configure" to build nginx from source code on Linux.</div><div>On my system I have two version of already built OpenSSL: one in "/opt/ssl" (version 1.1.0f) and the other one on "/opt/ssldevel" (version 1.1.1 devel that supports TLS 1.3 draft 18).</div><div>The system's OpenSSL library points to the version 1.1.0f in "/opt/ssl" via the "/etc/ld.so.conf" file:</div><div><br></div><div><br></div><div>root@server:~# cat /etc/ld.so.conf</div><div>/opt/ssl/lib</div><div>/usr/local/lib</div><div>include /etc/ld.so.conf.d/*.conf</div><div><br></div><div><br></div><div>root@server:~# ldconfig -v</div><div>ldconfig: Path `/usr/local/lib' given more than once</div><div>ldconfig: Path `/lib/arm-linux-gnueabihf' given more than once</div><div>ldconfig: Path `/usr/lib/arm-linux-gnueabihf' given more than once</div><div>/opt/ssl/lib:</div><div>        libcrypto.so.1.1 -> libcrypto.so.1.1</div><div>        libssl.so.1.1 -> libssl.so.1.1</div><div><br></div><div>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".</div><div><br></div><div>See the shared library available on "/opt/ssldevel/lib":</div><div><br></div><div>root@server:/opt/ssldevel/lib# ls -la</div><div>total 6588</div><div>drwxr-xr-x 4 root root    4096 Jul 11 12:22 .</div><div>drwxr-xr-x 9 root root    4096 Jul 11 12:22 ..</div><div>drwxr-xr-x 2 root root    4096 Jul 11 12:22 engines-1.1</div><div>-rw-r--r-- 1 root root 3363402 Jul 11 12:22 libcrypto.a</div><div>lrwxrwxrwx 1 root root      16 Jul 11 12:22 libcrypto.so -> libcrypto.so.1.1</div><div>-rwxr-xr-x 1 root root 2305732 Jul 11 12:22 libcrypto.so.1.1</div><div>-rw-r--r-- 1 root root  585004 Jul 11 12:22 libssl.a</div><div>lrwxrwxrwx 1 root root      13 Jul 11 12:22 libssl.so -> libssl.so.1.1</div><div>-rwxr-xr-x 1 root root  468330 Jul 11 12:22 libssl.so.1.1</div><div>drwxr-xr-x 2 root root    4096 Jul 11 12:22 pkgconfig</div><div><br></div><div><br></div><div><br></div><div>I have tried various combinations of parameter in the "configure" options, but after building nginx always will use the OpenSSL library (shared) available on "/opt/ssl/lib". I have checked it with the command "ldd".</div><div><br></div><div>There are my "configure" versions that I have tried but without success because nginx will always go to use the library available at "/opt/ssl/lib" (I paste only the OpenSSL part):</div><div><br></div><div><br></div><div><br></div><div>configure --with-cc-opt="-I /opt/ssldevel/include" --with-ld-opt="-L /opt/ssldevel/lib -Wl,-rpath -lssl -lcrypto -ldl" --with-http_ssl_module --with-openssl-opt=enable-tls1_3</div><div><br></div><div>configure --with-cc-opt="-I /opt/ssldevel/include" --with-ld-opt="-L /opt/ssldevel/lib" --with-http_ssl_module --with-openssl-opt=enable-tls1_3</div><div><br></div><div><br></div><div><br></div><div>Please, what are the correct parameter to give to "configure" to make nginx to point to specific path of OpenSSL shared library (so not using the system's one)?</div><div><br></div><div>Many thanks for your support.</div><div><br></div><div>Best Regards.</div><div><br></div><div>Fabio</div><div><br></div><div><br></div></div>