optimize: now we use the C compiler option -O2 by default.

This commit is contained in:
Yichun Zhang (agentzh)
2014-07-29 15:12:12 -07:00
parent 867328aa81
commit c23007bcce
2 changed files with 51 additions and 6 deletions

4
util/configure vendored
View File

@ -123,6 +123,10 @@ my $luajit_xcflags = '';
my (@ngx_opts, @ngx_cc_opts, @ngx_ld_opts);
# use -O2 to compile everything by default (which can be overridden
# by the user's own --with-cc-opt=OPTS option):
push @ngx_cc_opts, "-O2";
for my $opt (@ARGV) {
next unless defined $opt;