Commit 16c92916 authored by Andy Polyakov's avatar Andy Polyakov
Browse files

Configure: allow for compiler options starting with double dash [from HEAD].

parent 988037fe
Loading
Loading
Loading
Loading
+8 −13
Original line number Diff line number Diff line
@@ -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,/)
				{
				print STDERR $usage;
				exit(1);
				$libs.=$_." ";
				}
			else	# common if (/^[-+]/), just pass down...
				{
				$_ =~ s/%([0-9a-f]{1,2})/chr(hex($1))/gei;
				$flags.=$_." ";
				}
			}
		elsif ($_ =~ /^([^:]+):(.+)$/)