[project @ 2001-05-03 15:50:10 by simonmar]
authorsimonmar <unknown>
Thu, 3 May 2001 15:50:10 +0000 (15:50 +0000)
committersimonmar <unknown>
Thu, 3 May 2001 15:50:10 +0000 (15:50 +0000)
redirect CPP output to /dev/null; gcc 2.96 seems to behave differently
that 2.95 when the -E and -MMD flags are given.

glafp-utils/mkdependC/mkdependC.prl

index d879e7f..d4837e8 100644 (file)
@@ -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);