diff options
author | Andy Polyakov <appro@openssl.org> | 2012-09-19 21:00:35 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2012-09-19 21:00:35 +0000 |
commit | 16c92916c7e95aac8ba1f4d15f923fe480261bc4 (patch) | |
tree | 8484d04bb8d7d664f0579470fe6ad662e7c71495 /Configure | |
parent | 988037fe180052ea2f62cb8d0136c5443608ecc7 (diff) |
Configure: allow for compiler options starting with double dash [from HEAD].
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 21 |
1 files changed, 8 insertions, 13 deletions
@@ -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 ($_ =~ /^([^:]+):(.+)$/) |