From: Simon Ruderich Date: Sun, 8 Apr 2012 12:54:41 +0000 (+0200) Subject: Remove unnecessary capture groups. X-Git-Tag: 0.01~35 X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=0de8fe5bbd96d47e03fa301d2762eae2f70b4a91;p=blhc%2Fblhc.git Remove unnecessary capture groups. --- diff --git a/bin/blhc b/bin/blhc index d6fb851..f2e7295 100755 --- a/bin/blhc +++ b/bin/blhc @@ -181,10 +181,10 @@ my @def_cppflags_fortify = ( ); my @def_ldflags = (); my @def_ldflags_relro = ( - '-Wl,(-z,)?relro', + '-Wl,(?:-z,)?relro', ); my @def_ldflags_bindnow = ( - '-Wl,(-z,)?now', + '-Wl,(?:-z,)?now', ); my @def_ldflags_pie = ( '-fPIE', @@ -199,8 +199,8 @@ my @def_ldflags_pic = ( # stores string values of flag regexps above, see compile_flag_regexp(). my %flag_renames = ( '-O(?:2|3)' => '-O2', - '-Wl,(-z,)?relro' => '-Wl,-z,relro', - '-Wl,(-z,)?now' => '-Wl,-z,now', + '-Wl,(?:-z,)?relro' => '-Wl,-z,relro', + '-Wl,(?:-z,)?now' => '-Wl,-z,now', ); my %exit_code = (