From bf36faeb34a236218ab303ffea300ad996f68844 Mon Sep 17 00:00:00 2001 From: lijunlong Date: Sun, 7 Jun 2020 01:52:54 +0800 Subject: [PATCH] fix code style --- util/configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/configure b/util/configure index ac076ec..da74fe2 100755 --- a/util/configure +++ b/util/configure @@ -354,7 +354,7 @@ for my $opt (@ARGV) { } elsif ($opt =~ /^--with-(openssl|pcre|zlib)-opt=(.*)/) { my ($lib, $opt) = ($1, $2); push @ngx_opts, "--with-$lib-opt=-g $opt"; - $with_ext_lib_opts{"$lib-opt"} = 1; + $with_ext_lib_opts{$lib} = 1; } elsif ($opt =~ /^--sbin-path=(.*)/) { $ngx_sbin = $1; @@ -369,7 +369,7 @@ for my $opt (@ARGV) { } for my $lib (qw/openssl pcre zlib/) { - if ($with_ext_lib{$lib} && !$with_ext_lib_opts{"$lib-opt"}) { + if ($with_ext_lib{$lib} && !$with_ext_lib_opts{$lib}) { push @ngx_opts, "--with-$lib-opt=-g"; } }