fixed for more strict gcc syntax

This commit is contained in:
Dan Ballard 2013-01-30 21:11:32 -08:00
parent e58504c3f3
commit db2442486d
1 changed files with 13 additions and 1 deletions

View File

@ -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";