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/) if ($gcc =~ /2\.9/)
{ {
`cp amx.cpp amx.c`; `ln -s amx.cpp amx.c`;
push(@C_SOURCE_FILES, "amx.c"); push(@C_SOURCE_FILES, "amx.c");
$OPT{"opt"} .= " -malign-loops=2 -malign-jumps=2 -malign-functions=2"; $OPT{"opt"} .= " -malign-loops=2 -malign-jumps=2 -malign-functions=2";
} else { } else {
@ -180,7 +180,7 @@ for ($i=0; $i<=$#CPP_SOURCE_FILES; $i++)
$ofile = $file; $ofile = $file;
$ofile =~ s/\.cpp/\.o/; $ofile =~ s/\.cpp/\.o/;
$ofile = "$outdir/$ofile"; $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) if (-e $ofile)
{ {
$file_time = (stat($file))[9]; $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`; `$gcc`;