Important bug fixes
This commit is contained in:
parent
4a74dce0cd
commit
2d9e405b18
@ -59,10 +59,10 @@ while ($cmd = shift)
|
||||
}
|
||||
}
|
||||
|
||||
$gcc = `g++ --version`;
|
||||
$gcc = `gcc --version`;
|
||||
if ($gcc =~ /2\.9/)
|
||||
{
|
||||
`cp amx.cpp amx.c`;
|
||||
`ln -s amx.cpp amx.c`;
|
||||
push(@C_SOURCE_FILES, "amx.c");
|
||||
$OPT{"opt"} .= " -malign-loops=2 -malign-jumps=2 -malign-functions=2";
|
||||
} else {
|
||||
@ -180,7 +180,7 @@ for ($i=0; $i<=$#CPP_SOURCE_FILES; $i++)
|
||||
$ofile = $file;
|
||||
$ofile =~ s/\.cpp/\.o/;
|
||||
$ofile = "$outdir/$ofile";
|
||||
$gcc = "g++ $cflags -Dstrcmpi=strcasecmp -fPIC $inc -c $file -o $ofile";
|
||||
$gcc = "gcc $cflags -Dstrcmpi=strcasecmp -fPIC $inc -c $file -o $ofile";
|
||||
if (-e $ofile)
|
||||
{
|
||||
$file_time = (stat($file))[9];
|
||||
@ -218,5 +218,5 @@ for ($i=0; $i<=$#CPP_SOURCE_FILES; $i++)
|
||||
}
|
||||
}
|
||||
|
||||
$gcc = "g++ $cflags -shared -ldl -lm @LINK -o $outdir/$bin";
|
||||
$gcc = "gcc $cflags -shared -ldl -lm @LINK -o $outdir/$bin";
|
||||
`$gcc`;
|
||||
|
Loading…
Reference in New Issue
Block a user