summaryrefslogtreecommitdiffhomepage
path: root/auto/unix
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2016-02-18 11:39:57 +0300
committerRuslan Ermilov <ru@nginx.com>2016-02-18 11:39:57 +0300
commit6fccc00aa8afc95827a828641ec0dc72b72502ee (patch)
tree7a58bad85ec052afc7040f0b172d45666580dd95 /auto/unix
parentfaa96e82d273bec6cb8bdf37f78e038aecf7621a (diff)
downloadnginx-6fccc00aa8afc95827a828641ec0dc72b72502ee.tar.gz
nginx-6fccc00aa8afc95827a828641ec0dc72b72502ee.tar.bz2
Configure: fixed static nginx build with OpenSSL (ticket #903).
Before 7142b04337d6, it was possible to build the OpenSSL library along with nginx, and link nginx statically with this library (--with-openssl=DIR --with-ld-opt=-static --with-http_ssl_module). This was broken on Linux by not adding -ldl after -lcrypto. The fix also makes it possible to link nginx statically on Linux with the system OpenSSL library, which never worked before.
Diffstat (limited to '')
-rwxr-xr-xauto/unix1
1 files changed, 1 insertions, 0 deletions
diff --git a/auto/unix b/auto/unix
index e07df0844..ce0179151 100755
--- a/auto/unix
+++ b/auto/unix
@@ -272,6 +272,7 @@ if [ $ngx_found != yes ]; then
if [ $ngx_found = yes ]; then
CORE_LIBS="$CORE_LIBS -ldl"
+ NGX_LIBDL="-ldl"
fi
fi