comparison auto/unix @ 4044:0ea785433fcf stable-1.0

Merge of r4004, r4005: Solaris related fixes: *) Detect POSIX semaphores in librt on Solaris (ticket #3). Patch by Denis Ivanov. *) Lower optimization level for Sun Studio before 12.1. At least Sun Studio 12 has problems with bit-fields exposed by nginx code (caught by test suite). They seems to be fixed in Sun Studio 12.1. As a workaround use "-fast -xalias_level=any" for older versions, it resolves the problem.
author Igor Sysoev <igor@sysoev.ru>
date Mon, 29 Aug 2011 12:50:35 +0000
parents b5c169873c6b
children b044d6553d52
comparison
equal deleted inserted replaced
4043:e2b11e0d49cf 4044:0ea785433fcf
618 CORE_LIBS="$CORE_LIBS -lpthread" 618 CORE_LIBS="$CORE_LIBS -lpthread"
619 fi 619 fi
620 fi 620 fi
621 621
622 622
623 if [ $ngx_found = no ]; then
624
625 # Solaris has POSIX semaphores in librt
626 ngx_feature="POSIX semaphores in librt"
627 ngx_feature_libs=-lrt
628 . auto/feature
629
630 if [ $ngx_found = yes ]; then
631 CORE_LIBS="$CORE_LIBS -lrt"
632 fi
633 fi
634
635
623 ngx_feature="struct msghdr.msg_control" 636 ngx_feature="struct msghdr.msg_control"
624 ngx_feature_name="NGX_HAVE_MSGHDR_MSG_CONTROL" 637 ngx_feature_name="NGX_HAVE_MSGHDR_MSG_CONTROL"
625 ngx_feature_run=no 638 ngx_feature_run=no
626 ngx_feature_incs="#include <sys/socket.h>" 639 ngx_feature_incs="#include <sys/socket.h>"
627 ngx_feature_path= 640 ngx_feature_path=