diff --git a/amxmodx/Makefile.pl b/amxmodx/Makefile.pl index 55ca1ecb..d98f0532 100755 --- a/amxmodx/Makefile.pl +++ b/amxmodx/Makefile.pl @@ -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`;