]> git.kaiwu.me - nginx.git/commitdiff
Detect POSIX semaphores in librt on Solaris (ticket #3).
authorMaxim Dounin <mdounin@mdounin.ru>
Wed, 17 Aug 2011 08:35:54 +0000 (08:35 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Wed, 17 Aug 2011 08:35:54 +0000 (08:35 +0000)
Patch by Denis Ivanov.

auto/unix

index 190d4a43fbe05fcf5fb444c01a6e064109cd6131..b3541c56e7264de8669263bd68599cdef2107996 100755 (executable)
--- a/auto/unix
+++ b/auto/unix
@@ -620,6 +620,19 @@ if [ $ngx_found = no ]; then
 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