Mercurial > hg > nginx
comparison auto/cc @ 288:f81d075ad172
nginx-0.0.2-2004-03-14-23:46:25 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 14 Mar 2004 20:46:25 +0000 |
parents | 35a6a9df2d25 |
children | 87e73f067470 |
comparison
equal
deleted
inserted
replaced
287:35a6a9df2d25 | 288:f81d075ad172 |
---|---|
84 # Intel C++ compiler 7.1 | 84 # Intel C++ compiler 7.1 |
85 | 85 |
86 # optimization | 86 # optimization |
87 CFLAGS="$CFLAGS -O" | 87 CFLAGS="$CFLAGS -O" |
88 # inline functions declared with __inline | 88 # inline functions declared with __inline |
89 CFLAGS="$CFLAGS -Ob1" | 89 #CFLAGS="$CFLAGS -Ob1" |
90 # inline any function, at the compiler's discretion | 90 # inline any function, at the compiler's discretion |
91 #CFLAGS="$CFLAGS -Ob2" | 91 CFLAGS="$CFLAGS -Ob2" |
92 | |
93 # single-file IP optimizations | |
94 #IPO="-ip" | |
95 # multi-file IP optimizations | |
96 IPO="-ipo -ipo_obj" | |
97 CFLAGS="$CFLAGS $IPO" | |
98 CORE_LINK="$CORE_LINK $IPO" | |
99 CORE_LINK="$CORE_LINK -opt_report_file=$OBJS/opt_report_file" | |
92 | 100 |
93 case $CPU in | 101 case $CPU in |
94 pentium) | 102 pentium) |
95 # optimize for Pentium and Athlon | 103 # optimize for Pentium and Athlon |
96 CPU_OPT="-march=pentium" | 104 CPU_OPT="-march=pentium" |
108 esac | 116 esac |
109 | 117 |
110 CFLAGS="$CFLAGS $CPU_OPT" | 118 CFLAGS="$CFLAGS $CPU_OPT" |
111 | 119 |
112 if [ ".$PCRE_OPT" = "." ]; then | 120 if [ ".$PCRE_OPT" = "." ]; then |
113 PCRE_OPT="-O $CPU_OPT" | 121 PCRE_OPT="-O $IPO $CPU_OPT" |
114 fi | 122 fi |
115 | 123 |
116 if [ ".$MD5_OPT" = "." ]; then | 124 if [ ".$MD5_OPT" = "." ]; then |
117 MD5_OPT="-O $CPU_OPT" | 125 MD5_OPT="-O $IPO $CPU_OPT" |
118 fi | 126 fi |
119 | 127 |
120 if [ ".$ZLIB_OPT" = "." ]; then | 128 if [ ".$ZLIB_OPT" = "." ]; then |
121 ZLIB_OPT="-O $CPU_OPT" | 129 ZLIB_OPT="-O $IPO $CPU_OPT" |
122 fi | 130 fi |
123 | 131 |
124 # warnings | 132 # warnings |
125 CFLAGS="$CFLAGS -w1" | 133 CFLAGS="$CFLAGS -w1" |
126 | 134 |
127 # stop on warning | 135 # stop on warning |
128 CFLAGS="$CFLAGS -Werror" | 136 CFLAGS="$CFLAGS -Werror" |
137 | |
138 # debug | |
139 CFLAGS="$CFLAGS -g" | |
129 | 140 |
130 have=HAVE_C99_VARIADIC_MACROS . auto/have | 141 have=HAVE_C99_VARIADIC_MACROS . auto/have |
131 | 142 |
132 LINK="\$(CC)" | 143 LINK="\$(CC)" |
133 | 144 |