]> git.kaiwu.me - nginx.git/commitdiff
use -ldl for any OS that needs it
authorIgor Sysoev <igor@sysoev.ru>
Fri, 22 May 2009 09:22:28 +0000 (09:22 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 22 May 2009 09:22:28 +0000 (09:22 +0000)
auto/lib/openssl/conf

index 8716339ee2c91e15a557a01c6ef1e1c8331f0c48..8a762a2fcfaa646c8f691d88cea44db40231369e 100644 (file)
@@ -29,16 +29,10 @@ if [ $OPENSSL != NONE ]; then
             CORE_DEPS="$CORE_DEPS $OPENSSL/openssl/include/openssl/ssl.h"
             CORE_LIBS="$CORE_LIBS $OPENSSL/openssl/lib/libssl.a"
             CORE_LIBS="$CORE_LIBS $OPENSSL/openssl/lib/libcrypto.a"
-        ;;
-    esac
-
-    case "$NGX_SYSTEM" in
-        SunOS|Linux)
             CORE_LIBS="$CORE_LIBS $NGX_LIBDL"
         ;;
     esac
 
-
 else
 
     case "$NGX_PLATFORM" in
@@ -70,14 +64,8 @@ else
 
             if [ $ngx_found = yes ]; then
                 have=NGX_SSL . auto/have
-                CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
+                CORE_LIBS="$CORE_LIBS $ngx_feature_libs $NGX_LIBDL"
                 OPENSSL=YES
-
-                case "$NGX_SYSTEM" in
-                    SunOS)
-                        CORE_LIBS="$CORE_LIBS $NGX_LIBDL"
-                    ;;
-                esac
             fi
         ;;