Configure: allow for compiler options starting with double dash [from HEAD].
authorAndy Polyakov <appro@openssl.org>
Wed, 19 Sep 2012 21:00:35 +0000 (21:00 +0000)
committerAndy Polyakov <appro@openssl.org>
Wed, 19 Sep 2012 21:00:35 +0000 (21:00 +0000)
Configure

index 2d5e25f59feddde90da11db252f6114cdad20dcb..5779152aa8b8775de30d15a4e7c89030761a23fa 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -874,16 +874,7 @@ PROCESS_ARGS:
                        }
                elsif (/^[-+]/)
                        {
                        }
                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;
                                }
                                {
                                $prefix=$1;
                                }
@@ -927,10 +918,14 @@ PROCESS_ARGS:
                                {
                                $cross_compile_prefix=$1;
                                }
                                {
                                $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 ($_ =~ /^([^:]+):(.+)$/)
                                }
                        }
                elsif ($_ =~ /^([^:]+):(.+)$/)