comparison auto/unix @ 6403:e59e617f8fcb

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.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 18 Feb 2016 11:39:57 +0300
parents 3577c021f21e
children 8f038068f4bc
comparison
equal deleted inserted replaced
6402:7296b38f6416 6403:e59e617f8fcb
270 ngx_feature_libs="-ldl" 270 ngx_feature_libs="-ldl"
271 . auto/feature 271 . auto/feature
272 272
273 if [ $ngx_found = yes ]; then 273 if [ $ngx_found = yes ]; then
274 CORE_LIBS="$CORE_LIBS -ldl" 274 CORE_LIBS="$CORE_LIBS -ldl"
275 NGX_LIBDL="-ldl"
275 fi 276 fi
276 fi 277 fi
277 278
278 279
279 ngx_feature="sched_yield()" 280 ngx_feature="sched_yield()"