I was having some trouble yesterday building nginx from source with LibreSSL. Following the documentation https://nginx.org/en/docs/quic.html didn't seem to work with the latest nginx 1.26 and Libressl 3.9.2. The command in the docs is:
```
./configure
--with-debug
--with-http_v3_module
--with-cc-opt="-I../libressl/build/include"
--with-ld-opt="-L../libressl/build/lib"
```
But the latest libressl doesn't produce a lib/ folder when you build it as a static library. So i tried various combinations of
--with-ld-opt="-L../libressl/build/crypto -L../libressl/build/tls -L../libressl/build/ssl"
but these all lead to the same error:
```
./auto/configure: error: SSL modules require the OpenSSL library.
You can either do not enable the modules, or install the OpenSSL library
into the system, or build the OpenSSL library statically from the source
with nginx by using --with-openssl=<path> option.
```
So after digging I found some old examples where folks were just passing in the path to the libressl source to --with-openssl. Modifying my command to this seemed to work.
```
./auto/configure --with-openssl=external/libressl \
--with-debug \
--with-http_ssl_module \
--with-http_v3_module
```
Can anyone confirm whether this is in fact the correct way to build nginx with libressl these days?