Mercurial > hg > nginx-vendor-0-7
annotate auto/cc/sunc @ 506:b9fdcaf2062b NGINX_0_7_65
nginx 0.7.65
*) Security: now nginx/Windows ignores trailing spaces in URI.
Thanks to Dan Crowley, Core Security Technologies.
*) Security: now nginx/Windows ignores short files names.
Thanks to Dan Crowley, Core Security Technologies.
*) Change: now the "009" status code is written to an access log for
proxied HTTP/0.9 responses.
*) Change: now the default buffer size of the
"large_client_header_buffers" directive is 8K.
Thanks to Andrew Cholakian.
*) Change: now default SSL ciphers are "HIGH:!ADH:!MD5".
*) Change: now SSLv2 protocol is disabled by default.
*) Change: now $host variable value is always low case.
*) Feature: the conf/fastcgi.conf for simple FastCGI configurations.
*) Feature: now URI part is not required a "proxy_pass" directive if
variables are used.
*) Feature: the $ssl_session_id variable.
*) Bugfix: if a proxied or FastCGI request was internally redirected to
another proxied or FastCGI location, then $upstream_response_time
variable may have abnormally large value; the bug had appeared in
0.7.63.
*) Bugfix: if the "expires modified" set date in the past, then a
negative number was set in the "Cache-Control" response header
line.
Thanks to Alex Kapranoff.
*) Bugfix: nginx closed a connection if a cached response had an empty
body.
Thanks to Piotr Sikora.
*) Bugfix: nginx cached a 304 response if there was the "If-None-Match"
header line in a proxied request.
Thanks to Tim Dettrick and David Kostal.
*) Bugfix: nginx did not treat a comma as separator in the
"Cache-Control" backend response header line.
*) Bugfix: cached HTTP/0.9 responses were handled incorrectly.
*) Bugfix: nginx sent gzipped responses to clients those do not support
gzip, if "gzip_static on" and "gzip_vary off"; the bug had appeared
in 0.8.16.
*) Bugfix: nginx always added "Content-Encoding: gzip" response header
line in 304 responses sent by ngx_http_gzip_static_module.
*) Bugfix: the "!-x" operator did not work.
Thanks to Maxim Dounin.
*) Bugfix: a segmentation fault might occur in a worker process, if
limit_rate was used in HTTPS server.
Thanks to Maxim Dounin.
*) Bugfix: a segmentation fault might occur in a worker process while
$limit_rate logging.
Thanks to Maxim Dounin.
*) Bugfix: nginx did not support dates in 2038 year on 32-bit platforms;
*) Bugfix: nginx/Windows tried to delete a temporary file twice if the
file should replace an already existent file.
*) Bugfix: nginx/Windows tried to rename a temporary file twice if the
file should replace an already existent file.
*) Bugfix: nginx/Windows might not create temporary file, a cache file,
or "proxy/fastcgi_store"d file if a worker had no enough access
rights for top level directories.
*) Bugfix: in UTF-8 encoding support by "try_files" directive in
nginx/Windows.
*) Bugfix: UTF-8 encoding usage in the ngx_http_autoindex_module.
Thanks to Maxim Dounin.
*) Bugfix: the ngx_http_autoindex_module did not show the trailing
slash in links to a directory; the bug had appeared in 0.7.15.
*) Bugfix: nginx did not close a log file set by the --error-log-path
configuration option; the bug had appeared in 0.7.53.
*) Bugfix: "addition_types" directive was incorrectly named
"addtion_types".
*) Bugfix: invalid request line in $request variable was written in
access_log only if error_log was set to "info" or "debug" level.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 01 Feb 2010 00:00:00 +0000 |
parents | 829f9a66a659 |
children |
rev | line source |
---|---|
110 | 1 |
2 # Copyright (C) Igor Sysoev | |
3 | |
4 | |
320 | 5 # Sun C 5.7 Patch 117837-04 2005/05/11 Sun Studio 10 |
6 # Sun C 5.8 2005/10/13 Sun Studio 11 | |
7 # Sun C 5.9 SunOS_i386 2007/05/03 Sun Studio 12 | |
8 # Sun C 5.9 SunOS_sparc 2007/05/03 | |
110 | 9 |
10 NGX_SUNC_VER=`$CC -V 2>&1 | grep 'Sun C' 2>&1 \ | |
236 | 11 | sed -e 's/^.* Sun C \(.*\)/\1/'` |
110 | 12 |
13 echo " + Sun C version: $NGX_SUNC_VER" | |
14 | |
15 have=NGX_COMPILER value="\"Sun C $NGX_SUNC_VER\"" . auto/define | |
16 | |
17 | |
320 | 18 cat << END > $NGX_AUTOTEST.c |
19 | |
20 int main() { printf("%d", __SUNPRO_C); } | |
21 | |
22 END | |
23 | |
24 eval "$CC -o $NGX_AUTOTEST $NGX_AUTOTEST.c >> $NGX_ERR 2>&1" | |
25 | |
26 if [ -x $NGX_AUTOTEST ]; then | |
27 ngx_sunc_ver=`$NGX_AUTOTEST` | |
28 fi | |
29 | |
30 rm $NGX_AUTOTEST* | |
31 | |
32 # 1424 == 0x590, Sun Studio 12 | |
33 | |
34 if [ "$ngx_sunc_ver" -ge 1424 ]; then | |
35 ngx_sparc32="-m32" | |
36 ngx_sparc64="-m64" | |
37 ngx_amd64="-m64" | |
38 | |
39 else | |
40 ngx_sparc32="-xarch=v8plus" | |
41 ngx_sparc64="-xarch=v9" | |
324 | 42 ngx_amd64="-xarch=amd64" |
320 | 43 fi |
44 | |
242 | 45 case "$NGX_MACHINE" in |
110 | 46 |
242 | 47 i86pc) |
110 | 48 NGX_AUX=" src/os/unix/ngx_sunpro_x86.il" |
49 ;; | |
50 | |
242 | 51 sun4u | sun4v) |
110 | 52 NGX_AUX=" src/os/unix/ngx_sunpro_sparc64.il" |
53 ;; | |
54 | |
55 esac | |
56 | |
57 | |
58 # optimizations | |
59 | |
320 | 60 IPO=-xipo |
61 CFLAGS="$CFLAGS -fast $IPO" | |
322 | 62 CORE_LINK="$CORE_LINK -fast $IPO" |
110 | 63 |
64 | |
65 case $CPU in | |
66 pentium) | |
67 # optimize for Pentium and Athlon | |
68 CPU_OPT="-xchip=pentium" | |
69 ;; | |
70 | |
71 pentiumpro) | |
72 # optimize for Pentium Pro, Pentium II | |
73 CPU_OPT="-xchip=pentium_pro" | |
74 ;; | |
75 | |
76 pentium3) | |
77 # optimize for Pentium III | |
78 CPU_OPT="-xchip=pentium3" | |
79 #CPU_OPT="$CPU_OPT -xarch=sse" | |
80 CPU_OPT="$CPU_OPT -xcache=16/32/4:256/32/4" | |
81 ;; | |
82 | |
83 pentium4) | |
84 # optimize for Pentium 4 | |
85 CPU_OPT="-xchip=pentium4" | |
86 #CPU_OPT="$CPU_OPT -xarch=sse2" | |
87 CPU_OPT="$CPU_OPT -xcache=8/64/4:256/128/8" | |
88 ;; | |
89 | |
90 opteron) | |
91 # optimize for Opteron | |
92 CPU_OPT="-xchip=opteron" | |
93 #CPU_OPT="$CPU_OPT -xarch=sse2" | |
94 CPU_OPT="$CPU_OPT -xcache=64/64/2:1024/64/16" | |
95 ;; | |
96 | |
320 | 97 sparc32) |
98 # build 32-bit UltraSparc binary | |
99 CPU_OPT="$ngx_sparc32" | |
100 CORE_LINK="$CORE_LINK $ngx_sparc32" | |
101 CC_AUX_FLAGS="$CC_AUX_FLAGS $ngx_sparc32" | |
102 NGX_CPU_CACHE_LINE=64 | |
103 ;; | |
104 | |
105 sparc64) | |
106 # build 64-bit UltraSparc binary | |
107 CPU_OPT="$ngx_sparc64" | |
108 CORE_LINK="$CORE_LINK $ngx_sparc64" | |
109 CC_AUX_FLAGS="$CC_AUX_FLAGS $ngx_sparc64" | |
110 NGX_CPU_CACHE_LINE=64 | |
111 ;; | |
112 | |
110 | 113 amd64) |
114 # build 64-bit amd64 binary | |
320 | 115 CPU_OPT="$ngx_amd64" |
116 CORE_LINK="$CORE_LINK $ngx_amd64" | |
322 | 117 CC_AUX_FLAGS="$CC_AUX_FLAGS $ngx_amd64" |
110 | 118 NGX_AUX=" src/os/unix/ngx_sunpro_amd64.il" |
320 | 119 NGX_CPU_CACHE_LINE=64 |
110 | 120 ;; |
121 | |
122 esac | |
123 | |
124 | |
125 CFLAGS="$CFLAGS $CPU_OPT" | |
126 | |
127 | |
128 if [ ".$PCRE_OPT" = "." ]; then | |
320 | 129 PCRE_OPT="-fast $IPO $CPU_OPT" |
110 | 130 fi |
131 | |
132 if [ ".$MD5_OPT" = "." ]; then | |
320 | 133 MD5_OPT="-fast $IPO $CPU_OPT" |
110 | 134 fi |
135 | |
136 if [ ".$ZLIB_OPT" = "." ]; then | |
320 | 137 ZLIB_OPT="-fast $IPO $CPU_OPT" |
110 | 138 fi |
139 | |
140 | |
141 # stop on warning | |
142 CFLAGS="$CFLAGS -errwarn=%all" | |
326 | 143 |
144 # debug | |
145 CFLAGS="$CFLAGS -g" |