From: Andy Polyakov Date: Wed, 19 Sep 2012 21:00:35 +0000 (+0000) Subject: Configure: allow for compiler options starting with double dash [from HEAD]. X-Git-Tag: OpenSSL_1_0_2-beta1~575 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=16c92916c7e95aac8ba1f4d15f923fe480261bc4 Configure: allow for compiler options starting with double dash [from HEAD]. --- diff --git a/Configure b/Configure index 2d5e25f59f..5779152aa8 100755 --- a/Configure +++ b/Configure @@ -874,16 +874,7 @@ PROCESS_ARGS: } elsif (/^[-+]/) { - if (/^-[lL](.*)$/ or /^-Wl,/) - { - $libs.=$_." "; - } - elsif (/^-[^-]/ or /^\+/) - { - $_ =~ s/%([0-9a-f]{1,2})/chr(hex($1))/gei; - $flags.=$_." "; - } - elsif (/^--prefix=(.*)$/) + if (/^--prefix=(.*)$/) { $prefix=$1; } @@ -927,10 +918,14 @@ PROCESS_ARGS: { $cross_compile_prefix=$1; } - else + elsif (/^-[lL](.*)$/ or /^-Wl,/) + { + $libs.=$_." "; + } + else # common if (/^[-+]/), just pass down... { - print STDERR $usage; - exit(1); + $_ =~ s/%([0-9a-f]{1,2})/chr(hex($1))/gei; + $flags.=$_." "; } } elsif ($_ =~ /^([^:]+):(.+)$/)