diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2009-05-08 09:36:16 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2009-05-08 09:36:16 +0000 |
| commit | 225d47185ae261f6b296f699b31fae1c275aaac7 (patch) | |
| tree | d3f3fac099fcdf044b023629235ca277f9a07b31 | |
| parent | e2259f492f1f55313bdee51213d79419798477fd (diff) | |
| download | nginx-225d47185ae261f6b296f699b31fae1c275aaac7.tar.gz nginx-225d47185ae261f6b296f699b31fae1c275aaac7.tar.bz2 | |
Solaris 10 has sched_yield() in libc
Diffstat (limited to '')
| -rw-r--r-- | auto/os/solaris | 4 | ||||
| -rwxr-xr-x | auto/unix | 12 |
2 files changed, 14 insertions, 2 deletions
diff --git a/auto/os/solaris b/auto/os/solaris index f98c851c5..333f0aebd 100644 --- a/auto/os/solaris +++ b/auto/os/solaris @@ -7,14 +7,14 @@ have=NGX_SOLARIS . auto/have_headers CORE_INCS="$UNIX_INCS" CORE_DEPS="$UNIX_DEPS $SOLARIS_DEPS" CORE_SRCS="$UNIX_SRCS $SOLARIS_SRCS " -CORE_LIBS="$CORE_LIBS -lsocket -lnsl -lrt" +CORE_LIBS="$CORE_LIBS -lsocket -lnsl" NGX_RPATH=YES # Solaris's make does not support a blank line between target and rules ngx_spacer= -CC_AUX_FLAGS="$CC_AUX_FLAGS -D_FILE_OFFSET_BITS=64 -lsocket -lnsl -lrt" +CC_AUX_FLAGS="$CC_AUX_FLAGS -D_FILE_OFFSET_BITS=64 -lsocket -lnsl" if [ $ZLIB_ASM != NO ]; then @@ -173,6 +173,18 @@ ngx_feature_test="sched_yield()" . auto/feature +if [ $ngx_found != yes ]; then + + ngx_feature="sched_yield() in librt" + ngx_feature_libs="-lrt" + . auto/feature + + if [ $ngx_found = yes ]; then + CORE_LIBS="$CORE_LIBS -lrt" + fi +fi + + ngx_feature="mmap(MAP_ANON|MAP_SHARED)" ngx_feature_name="NGX_HAVE_MAP_ANON" ngx_feature_run=yes |
