From 8d607abcd3025ab3e11cf9c2f06ad91928e1f97d Mon Sep 17 00:00:00 2001 From: TanGuofu <267266206@qq.com> Date: Sun, 11 Feb 2018 11:05:53 +0800 Subject: [PATCH] fix bugs: when --with-cc-opt=OPTS assigned, "-O2" not be overridden in configure, shift ngx_cc_opts when --with-cc-opt= assigned --- util/configure | 1 + 1 file changed, 1 insertion(+) diff --git a/util/configure b/util/configure index ef15b4b..e424363 100755 --- a/util/configure +++ b/util/configure @@ -232,6 +232,7 @@ for my $opt (@ARGV) { usage 0; } elsif ($opt =~ /^--with-cc-opt=(.*)/) { + shift @ngx_cc_opts; push @ngx_cc_opts, $1; } elsif ($opt =~ /^--with-ld-opt=(.*)/) {