comparison auto/cc/gcc @ 4:4b2dafa26fe2 NGINX_0_1_2

nginx 0.1.2 *) Feature: the --user=USER, --group=GROUP, and --with-ld-opt=OPTIONS options in configure. *) Feature: the server_name directive supports *.domain.tld. *) Bugfix: the portability improvements. *) Bugfix: if configuration file was set in command line, the reconfiguration was impossible; bug appeared in 0.1.1. *) Bugfix: proxy module may get caught in an endless loop when sendfile is not used. *) Bugfix: with sendfile the response was not recoded according to the charset module directives; bug appeared in 0.1.1. *) Bugfix: very seldom bug in the kqueue processing. *) Bugfix: the gzip module compressed the proxied responses that was already compressed.
author Igor Sysoev <http://sysoev.ru>
date Thu, 21 Oct 2004 00:00:00 +0400
parents
children 46833bd150cb
comparison
equal deleted inserted replaced
3:8beaf7b3241f 4:4b2dafa26fe2
1
2 # Copyright (C) Igor Sysoev
3
4
5 # gcc 2.7.2.3, 2.8.1, 2.95.4,
6 # 3.0.4, 3.1.1, 3.2.3, 3.3.2, 3.3.3, 3.3.4, 3.4
7
8
9 # Solaris 7's /usr/ccs/bin/as does not support "-pipe"
10
11 CC_TEST_FLAGS="-pipe"
12
13 ngx_feature="gcc -pipe switch"
14 ngx_feature_name=
15 ngx_feature_run=no
16 ngx_feature_incs=
17 ngx_feature_libs=
18 ngx_feature_test=
19 . auto/feature
20
21 CC_TEST_FLAGS=
22
23 if [ $ngx_found = yes ]; then
24 PIPE="-pipe"
25 fi
26
27
28 # optimizations
29
30 #CFLAGS="$CFLAGS -O2 -fomit-frame-pointer"
31
32 case $CPU in
33 pentium)
34 # optimize for Pentium and Athlon
35 CPU_OPT="-march=pentium"
36 ;;
37
38 pentiumpro)
39 # optimize for Pentium Pro, Pentium II and Pentium III
40 CPU_OPT="-march=pentiumpro"
41 ;;
42
43 pentium4)
44 # optimize for Pentium 4, gcc 3.x
45 CPU_OPT="-march=pentium4"
46 ;;
47
48 sparc64)
49 # build 64-bit UltraSparc binary
50 CPU_OPT="-m64"
51 CORE_LINK="$CORE_LINK -m64"
52 CC_AUX_FLAGS="$CC_AUX_FLAGS -m64"
53 ;;
54
55 esac
56
57
58 # STUB for batch builds
59 if [ $CC = gcc27 ]; then CPU_OPT=; fi
60
61
62 CFLAGS="$CFLAGS $PIPE $CPU_OPT"
63
64 if [ ".$PCRE_OPT" = "." ]; then
65 PCRE_OPT="-O2 -fomit-frame-pointer $PIPE $CPU_OPT"
66 else
67 PCRE_OPT="$PCRE_OPT $PIPE"
68 fi
69
70 if [ ".$MD5_OPT" = "." ]; then
71 MD5_OPT="-O2 -fomit-frame-pointer $PIPE $CPU_OPT"
72 else
73 MD5_OPT="$MD5_OPT $PIPE"
74 fi
75
76 if [ ".$ZLIB_OPT" = "." ]; then
77 ZLIB_OPT="-O2 -fomit-frame-pointer $PIPE $CPU_OPT"
78 else
79 ZLIB_OPT="$ZLIB_OPT $PIPE"
80 fi
81
82
83 # warnings
84
85 CFLAGS="$CFLAGS -O -W"
86 CFLAGS="$CFLAGS -Wall -Wpointer-arith"
87 #CFLAGS="$CFLAGS -Wconversion"
88 #CFLAGS="$CFLAGS -Winline"
89
90 # we have a lot of the unused function arguments
91 CFLAGS="$CFLAGS -Wno-unused"
92
93 # stop on warning
94 CFLAGS="$CFLAGS -Werror"
95
96 # debug
97 CFLAGS="$CFLAGS -g"
98
99 # DragonFly's gcc3 generates DWARF
100 #CFLAGS="$CFLAGS -g -gstabs"
101
102 if [ ".$CPP" = "." ]; then
103 CPP="$CC -E"
104 fi
105
106 LINK="\$(CC)"
107
108
109 CC_STRONG="-Wall -Werror"