comparison auto/cc/gcc @ 50:72eb30262aac NGINX_0_1_25

nginx 0.1.25 *) Bugfix: nginx did run on Linux parisc. *) Feature: nginx now does not start under FreeBSD if the sysctl kern.ipc.somaxconn value is too big. *) Bugfix: if a request was internally redirected by the ngx_http_index_module module to the ngx_http_proxy_module or ngx_http_fastcgi_module modules, then the index file was not closed after request completion. *) Feature: the "proxy_pass" can be used in location with regular expression. *) Feature: the ngx_http_rewrite_filter_module module supports the condition like "if ($HTTP_USER_AGENT ~ MSIE)". *) Bugfix: nginx started too slow if the large number of addresses and text values were used in the "geo" directive. *) Change: a variable name must be declared as "$name" in the "geo" directive. The previous variant without "$" is still supported, but will be removed soon. *) Feature: the "%{VARIABLE}v" logging parameter. *) Feature: the "set $name value" directive. *) Bugfix: gcc 4.0 compatibility. *) Feature: the --with-openssl-opt=OPTIONS autoconfiguration directive.
author Igor Sysoev <http://sysoev.ru>
date Sat, 19 Mar 2005 00:00:00 +0300
parents 9f3205d496a0
children b55cbf18157e
comparison
equal deleted inserted replaced
49:93dabbc9efb9 50:72eb30262aac
1 1
2 # Copyright (C) Igor Sysoev 2 # Copyright (C) Igor Sysoev
3 3
4 4
5 # gcc 2.7.2.3, 2.8.1, 2.95.4, 5 # gcc 2.7.2.3, 2.8.1, 2.95.4, egcs-1.1.2
6 # 3.0.4, 3.1.1, 3.2.3, 3.3.2, 3.3.3, 3.3.4, 3.4.0, 3.4.2 6 # 3.0.4, 3.1.1, 3.2.3, 3.3.2, 3.3.3, 3.3.4, 3.4.0, 3.4.2
7 # 4.0.0
8
9
10 NGX_GCC_VER=`$CC -v 2>&1 | grep 'gcc version' 2>&1 \
11 | sed -e 's/^.* version \(.*\)/\1/'`
12
13 echo " + gcc version: $NGX_GCC_VER"
7 14
8 15
9 # Solaris 7's /usr/ccs/bin/as does not support "-pipe" 16 # Solaris 7's /usr/ccs/bin/as does not support "-pipe"
10 17
11 CC_TEST_FLAGS="-pipe" 18 CC_TEST_FLAGS="-pipe"
21 CC_TEST_FLAGS= 28 CC_TEST_FLAGS=
22 29
23 if [ $ngx_found = yes ]; then 30 if [ $ngx_found = yes ]; then
24 PIPE="-pipe" 31 PIPE="-pipe"
25 fi 32 fi
26
27 33
28 # optimizations 34 # optimizations
29 35
30 #NGX_GCC_OPT="-O2" 36 #NGX_GCC_OPT="-O2"
31 #NGX_GCC_OPT="-Os" 37 #NGX_GCC_OPT="-Os"
59 ;; 65 ;;
60 66
61 esac 67 esac
62 68
63 69
64 # STUB for batch builds 70 case "$NGX_GCC_VER" in
65 if [ $CC = gcc27 ]; then CPU_OPT=; fi 71 2.7*)
72 # batch build
73 CPU_OPT=
74 ;;
75 esac
66 76
67 77
68 CFLAGS="$CFLAGS $PIPE $CPU_OPT" 78 CFLAGS="$CFLAGS $PIPE $CPU_OPT"
69 79
70 if [ ".$PCRE_OPT" = "." ]; then 80 if [ ".$PCRE_OPT" = "." ]; then
93 103
94 CFLAGS="$CFLAGS -Wall -Wpointer-arith" 104 CFLAGS="$CFLAGS -Wall -Wpointer-arith"
95 #CFLAGS="$CFLAGS -Wconversion" 105 #CFLAGS="$CFLAGS -Wconversion"
96 #CFLAGS="$CFLAGS -Winline" 106 #CFLAGS="$CFLAGS -Winline"
97 107
98 # we have a lot of the unused function arguments 108
99 CFLAGS="$CFLAGS -Wno-unused" 109 case "$NGX_GCC_VER" in
110 3.* | 4.* )
111 # we have a lot of the unused function arguments
112 CFLAGS="$CFLAGS -Wno-unused-parameter"
113 CFLAGS="$CFLAGS -Wno-unused-function"
114 #CFLAGS="$CFLAGS -Wunreachable-code"
115 ;;
116
117 *)
118 # we have a lot of the unused function arguments
119 CFLAGS="$CFLAGS -Wno-unused"
120 ;;
121 esac
122
100 123
101 # stop on warning 124 # stop on warning
102 CFLAGS="$CFLAGS -Werror" 125 CFLAGS="$CFLAGS -Werror"
103 126
104 # debug 127 # debug