summaryrefslogtreecommitdiffstats
path: root/Configure
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2012-09-19 21:00:35 +0000
committerAndy Polyakov <appro@openssl.org>2012-09-19 21:00:35 +0000
commit16c92916c7e95aac8ba1f4d15f923fe480261bc4 (patch)
tree8484d04bb8d7d664f0579470fe6ad662e7c71495 /Configure
parent988037fe180052ea2f62cb8d0136c5443608ecc7 (diff)
Configure: allow for compiler options starting with double dash [from HEAD].
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure21
1 files changed, 8 insertions, 13 deletions
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 ($_ =~ /^([^:]+):(.+)$/)