Mercurial > hg > nginx
changeset 4003:8cca96abbc3e
Detect POSIX semaphores in librt on Solaris (ticket #3).
Patch by Denis Ivanov.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 17 Aug 2011 08:35:54 +0000 |
parents | 4068898a6a7c |
children | 84bd993b8cd3 |
files | auto/unix |
diffstat | 1 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/auto/unix Sat Aug 13 15:15:50 2011 +0000 +++ b/auto/unix Wed Aug 17 08:35:54 2011 +0000 @@ -620,6 +620,19 @@ fi +if [ $ngx_found = no ]; then + + # Solaris has POSIX semaphores in librt + ngx_feature="POSIX semaphores in librt" + ngx_feature_libs=-lrt + . auto/feature + + if [ $ngx_found = yes ]; then + CORE_LIBS="$CORE_LIBS -lrt" + fi +fi + + ngx_feature="struct msghdr.msg_control" ngx_feature_name="NGX_HAVE_MSGHDR_MSG_CONTROL" ngx_feature_run=no