diff --git a/autoTest.pl b/autoTest.pl index 5436cd1..674ce56 100755 --- a/autoTest.pl +++ b/autoTest.pl @@ -555,11 +555,23 @@ foreach $l (@langs) if(length($compiler) < 5) {print results "\t";} if($data{$l}{"cflagspre$cp"}) { $cmd .= $data{$l}{"cflagspre$cp"};} $cmd .= "$comp "; + # So gcc stoped compiling if teh linking was done before the soruce file was specified + # go figure + $gcc_code = 0; + if ($l =~ /^ca?[23]?$/) { + $gcc_code = 1; + } + + if( $gcc_code) { + $cmd .= " ".$data{$l}{"src"}." "; + } if( $data{$l}{"cflags$cp"} ) { $cmd .= $data{$l}{"cflags$cp"}; } - $cmd .= " ".$data{$l}{"src"}." "; + if ( ! $gcc_code) { + $cmd .= " ".$data{$l}{"src"}." "; + } $cmd .= "\\\"\""; #printf "CMD: '$cmd'\n";