From: simonmar Date: Thu, 3 May 2001 15:50:10 +0000 (+0000) Subject: [project @ 2001-05-03 15:50:10 by simonmar] X-Git-Tag: Approximately_9120_patches~2006 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=fe3c002f88d899788a56c06bf3175cf035f4ee5f;p=ghc-hetmet.git [project @ 2001-05-03 15:50:10 by simonmar] redirect CPP output to /dev/null; gcc 2.96 seems to behave differently that 2.95 when the -E and -MMD flags are given. --- diff --git a/glafp-utils/mkdependC/mkdependC.prl b/glafp-utils/mkdependC/mkdependC.prl index d879e7f..d4837e8 100644 --- a/glafp-utils/mkdependC/mkdependC.prl +++ b/glafp-utils/mkdependC/mkdependC.prl @@ -163,7 +163,7 @@ sub slurp_file { # follows an example in the `open' item in perl man page # ${CPP} better be 'gcc -E', or the -x option will fail... # ..and the -MM & -MMD. - $result = system("${CPP} -MM -MMD $Include_dirs @Defines -x c $fname"); + $result = system("${CPP} -MM -MMD $Include_dirs @Defines -x c $fname >/dev/null"); if ($result != 0) { unlink($tempfile); exit($result);