Important bug fixes

This commit is contained in:
David Anderson 2004-08-23 14:14:58 +00:00
parent 4a74dce0cd
commit 2d9e405b18

View File

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